Overview
Imamiya Shrine in northern Kyoto is known for two things that should not logically coexist: epidemic control and social mobility. It was founded in 994 CE to contain a plague, but became famous as the “Tama no Koshi” shrine — the place where commoners pray to marry above their station. The connection runs through one woman: Keishōin, a greengrocer’s daughter who became a concubine, then gave birth to a shogun, and finally died as the most powerful woman in Japan. Her story transformed a plague shrine into a monument to ambition.
History & Origin
Imamiya Shrine was established in 994 CE during the Heian period when epidemic disease swept through Kyoto. The imperial court ordered the enshrinement of deities with power over pestilence — specifically Susanoo no Mikoto and his children — at a site in the Murasakino district where ritual purification ceremonies had been held since ancient times. The shrine’s name, “Imamiya” (New Shrine), distinguished it from the older Yasaka Shrine. During the Edo period, the shrine’s reputation shifted entirely when Keishōin — born Otama in 1627 to a vegetable seller near the shrine — rose from obscurity to become the mother of the fifth Tokugawa shogun, Tsunayoshi. She attributed her success to prayers at Imamiya and donated generously to its rebuilding, transforming it into a pilgrimage site for social climbers.
Enshrined Kami
Susanoo no Mikoto, the storm god and younger brother of Amaterasu, is the primary deity. Known for his violent temperament and eventual heroism in slaying the eight-headed serpent Yamata no Orochi, Susanoo gained association with disease prevention because pestilence was understood as spiritual pollution requiring his purifying force. He is enshrined alongside his consort Kushinadahime and their children Ōnamuchi no Mikoto (also known as Ōkuninushi) and Sukunahikona no Mikoto, all deities connected to healing, nation-building, and protection from calamity. The shrine’s unusual dual function — plague prevention and social advancement — reflects Susanoo’s own mythology: a destructive force who becomes a benefactor.
Legends & Mythology
The shrine’s defining legend belongs not to ancient mythology but to documented history elevated to folklore. Otama was born in 1627 in a vegetable-selling family living near Imamiya Shrine. As a young woman, she prayed regularly for a better life. Through circumstances lost to history, she entered service in Kyoto, then became a concubine to a nobleman, and eventually caught the attention of the third Tokugawa shogun, Iemitsu. She bore him a son, Tsunayoshi, in 1646. When Tsunayoshi unexpectedly became shogun in 1680, Otama — now renamed Keishōin — became the shogun’s mother, the highest position a woman could hold. She never forgot Imamiya. In 1694, she funded a complete reconstruction of the shrine, and upon her death in 1705, she was deified there. Women have visited ever since, carrying wishes written on paper, hoping to replicate her vertical ascent through society. The shrine sells “tama no koshi” amulets — literally “jeweled palanquin,” meaning a marriage that elevates your status.
Architecture & Features
The main hall and worship hall were rebuilt in 1902 after a fire, but preserve the Momoyama-period aesthetic funded by Keishōin’s donations. The shrine’s most unusual feature is the Ahokashi-san — a large sacred stone beside the main hall that visitors strike three times, lift, then strike three times more. If the stone feels lighter on the second lifting, your wish will be granted. The stone is ancient, predating the shrine’s formal founding, suggesting continuity with prehistoric ritual practices. Near the shrine gate stands Ichiwa, a tea house operating since the Heian period (over 1,000 years), famous for aburi-mochi — small rice cakes grilled over charcoal and coated in white miso. Eating them was originally a purification ritual; now it is simply tradition. The shrine grounds also contain a small forest of pine and maple that provides autumn color and a sense of enclosure rare in urban Kyoto.
Festivals & Rituals
- Yasurai Matsuri (Second Sunday of April) — One of Kyoto’s oldest festivals, predating the shrine itself. Dancers in red and black demon costumes parade through the neighborhood carrying flower-decorated umbrellas, performing exorcisms to prevent spring epidemics. The ritual dates to the Heian period when seasonal disease was attributed to restless spirits stirred by cherry blossoms.
- Reisai Grand Festival (May 5) — The shrine’s main annual rite, featuring processions and purification ceremonies. Keishōin’s spirit is honored with special offerings.
- Tama no Koshi守 Distribution (Year-round) — Women purchase amulets for marriage prospects and social advancement, a practice formalized in the Meiji period but rooted in Keishōin’s story.
Best Time to Visit
Mid-April for Yasurai Matsuri — the parade begins at 10 AM and the costumed dancers are genuinely strange, closer to folkloric terror than tourist performance. Late November for autumn foliage in the shrine forest, when the maples turn and the crowds remain manageable. Early morning any day to visit Ichiwa before the tea house fills; the mochi are grilled continuously from 10 AM and taste best when the charcoal is freshly lit. Avoid Golden Week (late April-early May) when the combination of festival calendar and national holidays creates congestion.
e-Omamori
Digital blessing from Imamiya Shrine (今宮神社 (京都市))
Carry the protection of this sacred place. Your e-Omamori holds the intention you set — active for 365 days.