The Julian year (introduced by Julius Caesar in 45 B.C.E.) contained exactly 365.25 days and had a leap year every fourth year (when the year number was divisible by four). But the actual year is 365.24219879 days long and thus the Roman calendar gradually became out of step with reality. By the sixteenth century, the calendar was ten days adrift from the seasons.
In 1576 Pope Gregory XIII assembled a commission of astronomers, mathematicians, and clergy, and this advisory body eventually adopted a plan suggested by the Calabrian physician Luigi Lilio, who was also known as Aloysius Lilius. On February 24, 1582, the pope declared that Thursday, October 4, 1582, was to be followed by Friday October 15. From that date, century leap years would only be allowed if the year number was exactly divisible by 400. Thus, 2000 was a leap year, to be followed by 2400,2800, and so
more...