Kyoto's downtown area is reserved for pedestrian traffic on the three nights leading up to the massive parade. These nights are known as yoiyama on July 16 and July 23, yoiyoiyama on July 15 and July 22, and yoiyoiyoiyama on July 14 and July 21.
During the yoiyama evenings leading up to the parade, some private houses in the old kimono merchant district open their entryways to the public, exhibiting valuable family heirlooms, in a custom known as the Byōbu Matsuri, or Folding Screen Festival. This is a precious opportunity to visit and observe traditional Japanese residences of Kyoto.
This festival originated as part of a purification ritual (goryo-e) to appease the gods thought to cause fire, floods and earthquakes. In 869, the people were suffering from plague and pestilence which was attributed to the rampaging deity Gozu Tennō Emperor Seiwa ordered that the people pray to the god of the Yasaka Shrine, Susanoo-no-mikoto. Sixty-six stylized and decorated halberds, one for each province in old Japan, were prepared and erected at Shinsen-en, a garden, along with the portable shrines (mikoshi) from Yasaka Shrine.
This practice was repeated wherever an outbreak occurred. In 970, it was decreed an annual event and has since seldom been broken. Over time the increasingly powerful and influential merchant class made the festival more elaborate and, by the Edo period (1603–1868), used the parade to brandish their wealth.
In 1533, the Ashikaga shogunate halted all religious events, but the people protested, stating that they could do without the rituals, but not the procession. This marks the progression into the festival's current form. Smaller floats that were lost or damaged over the centuries have been restored, and the weavers of the Nishijin area offer new tapestries to replace destroyed ones. When not in use, the floats and regalia are kept in special storehouses throughout the central merchant district of Kyoto in the care of the local people.
This festival also serves as an important setting in Yasunari Kawabata's novel, The Old Capital which he describes, along with the Festival of Ages and the Aoi Festival, as "the 'three great festivals' of the old capital.