There are two categories of holidays in Japan: matsuri (temple fairs), which are largely of Shinto origin and relate to the cultivation of rice and the spiritual well-being of the local community; and nenjyū gyōji (annual feasts), which are largely of Chinese or Buddhist origin. During the Heian period, the matsuri were organized into a formal calendar, and other festivals were added. Very few matsuri or annual feasts are national holidays, but they are included in the national calendar of annual events. Most matsuri are local events and follow local traditions. They may be sponsored by schools, towns, or other groups but are most often associated with Shinto shrines.