In 731BC Numa Pompilius, the second king of Rome, decided to line the calendar up with the phases of the moon. There are 12 cycles of the moon each year, so the calendar was divided into twelve months. January and February were added and the new calendar year lasted 355 days.