Intercalation is the insertion of a day, week or month into some calendar years to make the calendar follow the seasons or moon phases. Lunisolar calendars may require a combination of both adjustments.
The Decree of Canopus, which was issued by the pharaoh Ptolemy III, Euergetes of Egypt in 239 BC, decreed a solar leap day system.
In the Julian Calendar, as well as in the Gregorian calendar that improved it, intercalation is done by adding an extra day to February in each leap year. In the Julian Calendar this was done every 4 years. In the Gregorian calendar years whose number is evenly divisible by 100 but not 400, were exempted in order to improve accuracy.
The solar year does not have a whole number of lunar months either, so a lunisolar calendar must have a variable number of months in a year. This is usually 12 months, but sometimes a 13th month (an intercalary or embolismic month) is added to the year.
ISO 8601 includes a specification for a 52-week year. Any year that has 53 Thursdays has 53 weeks; this extra week may be regarded as intercalary.