Imamiya Shrine is a Shinto shrine located in Kita-ku, Kyoto, Japan. It was originally established for patrons to pray for safety from an epidemic, though it has evolved into a shrine where patrons can pray for general good health. The shrine complex is embedded in a forest of large trees northwest of Daitoku-ji and includes many minor shrines in addition to the main shrine, or honden. On every second Sunday in April, one of the 3 major festivals in Kyoto, Yasurai Matsuri, is held at the shrine. The word imamiya means "newly constructed."
Imamiya Shrine was originally founded during the Heian period in 994. In 1001, however, the shrine was moved to its present day location as a response to a epidemic that had hit the Kyoto area a year earlier. Current iterations of many of the structures were rebuilt in 1902. The shrine's festival, Yasurai Matsuri, was also created as a response to the epidemic. Through music and dance, the festival attempts to appease petrels around Kyoto with cherry blossom petals in their beaks, which were then believed to be spreading disease.
There are several attractions that are unique to Imamiya Shrine. Specifically, there are two longstanding restaurants adjacent to the shrine. These shops' specialty are aburimochi - skewered, roasted rice cakes that are a traditional Kyoto confection. The two restaurants, named Ichiwa and Kazariya, have been open since 1002 and 1656 respectively and are located immediately outside the shrine's east gate.