Every July, Kyoto's streets fill with towering festival floats, and the story starts right here. Yasaka Shrine is the organizer behind the Gion Festival, one of the three great festivals of Japan, and it began as a prayer, not a party. In the year 869, an epidemic swept the country. The response was a ritual of appeasing angry spirits, called goryo-e, held at Shinsen-en, a pleasure garden belonging to the imperial court at that time. Sixty-six pikes were raised, one for each of the 66 regions of the country then, to pray for the safety of the nation and the removal of calamity. Over time those pikes became decorated, grew larger, and eventually turned into the famous floats that glide through the city. The festival has continued for more than a thousand years, protected by townspeople through many hardships. The heart of the festival is three portable shrines. On the evening of July 17, they carry the shrine's deity out from Yasaka Shrine. For one week the deity rests at the festival resting place at Shijo Teramachi, then on July 24 returns to the shrine after a tour of the neighborhoods that support it. The festival runs for the whole month of July, and nearly every ritual in it is tied to either the portable shrine procession or the parade of floats.