A year that started in March
In the early Roman calendar, the year began in March, the month of Mars, the god of war, when armies could march again. That is why September, October, November, and December carry Latin number names — seventh, eighth, ninth, tenth — that no longer match their places.
January, named for Janus, the god of doorways and beginnings who faces both ways, later became the first month. February, the shortest month, ended up last in the old arrangement, which is one reason it still collects the calendar's leftover days.
Julius Caesar fixes the drift
By the time of Julius Caesar, the Roman calendar had drifted badly out of step with the seasons. In 45 BCE, Caesar introduced the Julian calendar: a 365-day year with an extra day every four years — the leap year idea we still use.
The Julian year was very close to the real solar year, but not exact. It ran about eleven minutes too long each year, and over centuries those minutes added up to days.
The Gregorian tidy-up
In 1582, Pope Gregory XIII introduced a corrected calendar. It kept leap years but skipped them in most century years, and countries adopted it at different times over the following centuries, which is why old dates can be confusing.
The Gregorian calendar is now the civil calendar used almost everywhere. Its month names, though, are still the Roman originals — a two-thousand-year-old naming system hiding in plain sight on every phone screen.

