Overview
At the northern edge of Kyoto, where the city dissolves into the wooded slopes beyond Daitoku-ji, Imamiya Shrine stands in a grove of great trees that feel older than the shrine itself. The compound is quiet on ordinary mornings — the creak of the east gate, the smell of charcoal drifting from the aburimochi stalls, the soft clap of hands at the main hall — but twice a year the streets fill with processions that have not changed shape since the Heian court dispatched them to beg the gods for mercy against disease.
The shrine’s informal name tells you everything about its dual identity. Locals call it Tamanokoshi-jinja — the Palanquin-of-Good-Fortune Shrine — because a young vegetable seller’s daughter named Otama was born just outside these gates, rose to become the favourite consort of the third Tokugawa shogun, and ultimately gave Japan its fifth shogun. The idiom for a spectacular rise in station, tama no koshi, is traced back to her. Pilgrims still come to tie their wishes to the prayer boards and touch the sacred well called Otama-no-i, hoping a little of her extraordinary luck will transfer.
History & Origin
The site’s religious life predates the shrine’s formal establishment by at least two centuries. A small sanctuary dedicated to the plague deity Susanoo had already occupied this ground before the Heian capital was founded in 794, and that older sanctuary survives today as the subsidiary Yakunojinja on the shrine’s east side.
The pivotal year was 994. A devastating epidemic swept Kyoto, and the imperial court ordered two portable shrines constructed, loaded with the pestilence deities worshipped at this spot, and carried to Funaoka-yama hill north of the city. There, with offerings of music and prayer, priests transferred the sickness into hemp cloth and floated it downriver to the sea. The procession that accompanied those mikoshi became the ancestor of today’s Imamiya Matsuri. Seven years later, in 1001, a second wave of disease prompted the court to make the arrangement permanent: the shrine was rebuilt at its present location, a proper honden was erected, and the gods were formally enshrined — the year that marks Imamiya’s founding in the official record.
The shrine accumulated powerful patrons over the centuries. The Ashikaga shoguns reconstructed the main hall after the Ōnin War burned it in the late fifteenth century; Toyotomi Hideyoshi rebuilt the otabisho (the procession’s resting station) and donated a portable shrine in 1593. The greatest benefactor, however, was Keishoin — the woman born Otama in the Nishijin weaving district just outside these gates — who, as the mother of the fifth shogun Tokugawa Tsunayoshi, funded a sweeping reconstruction of the entire complex in 1694. She rebuilt the worship hall, the hand-washing pavilion, the subsidiary Eight Shrines, the Young-Princess shrine, and more, and she personally organised the revival of the Yasurai Matsuri festival, which had fallen dormant. The 1694 construction campaign left such a deep architectural imprint that the shrine compound today remains substantially the Genroku-era shrine Keishoin created. A fire in 1896 destroyed the honden; it was rebuilt in 1902 and registered as a National Tangible Cultural Property in 2018 along with thirty-one other structures on the grounds.
Enshrined Kami
The principal deity confirmed by the Wikidata authority record (P825) is Ōkuninushi (大国主神 / 大己貴命), the great kami of nation-building, medicine, and good fortune. Ōkuninushi is one of Shinto’s most beloved figures — a deity of remarkable resilience who was killed and resurrected multiple times before eventually completing the creation of the land and then peacefully yielding sovereignty to the heavenly kami of the imperial line. His domains of healing and earthly blessing made him an apt choice for a shrine whose founding purpose was the conquest of plague. The Wikipedia article also names Kotoshironushi (事代主命), Ōkuninushi’s son and a kami of commerce and divination, and Kushinadahime (奇稲田姫命), the beloved of Susanoo and a kami of rice and fertility, as co-enshrined deities at the main hall. The older sub-shrine on the grounds, the Yakunojinja, separately houses Susanoo (素戔嗚尊), the storm deity whose power over disease and purification ties most directly to the shrine’s original plague-repelling function.
Legends & Mythology
The most vivid legend attached to Imamiya is the story of Otama, the vegetable seller’s daughter who became Keishoin. Born in the Nishijin district near the shrine’s east gate, she reportedly prayed here as a child for good fortune. Her prayers were answered beyond any imaginable scale: she entered the household of the third Tokugawa shogun as a lady-in-waiting, became his favourite consort, and bore him the son who would rule Japan as the fifth shogun Tokugawa Tsunayoshi. Elevated to the senior first court rank of Juichii, she is remembered as the most powerful woman of the Edo period. The expression tama no koshi ni noru — to ride in the jewelled palanquin — entered the Japanese language as a phrase for a dramatic rise through marriage, and Imamiya claims the origin of that saying. Her portrait medallion stands in the shrine grounds; the hand-washing well she rebuilt is still called Otama-no-i.
The divination stone called Ahokashisan (阿呆賢さん) carries its own lore. A visitor rubs the smooth grey stone with both palms, then lifts it. If it feels heavy, the oracle is unfavourable. The visitor then strokes it three times while fixing their wish clearly in mind and lifts once more: if the stone now feels lighter than before, the wish will be granted. The stone’s name pairs the words for ‘fool’ and ‘wise’, an ironic Kyoto joke at the expense of anyone foolish enough to doubt its power.
Architecture & Features
Imamiya’s compound is arranged along a central east-west axis entered through a rōmon (two-storey gate) built in 1926, which opens into a broad gravel precinct flanked by colonnaded corridors. The main honden, walled by plastered mud-and-tile earthen fences, dates to the 1902 reconstruction and together with its attached haiden (worship hall), offering hall, and connecting corridors forms the core of thirty-two structures that received National Registered Tangible Cultural Property status in 2018.
The worship hall itself, a gem of the compound, is the older structure — rebuilt by Keishoin in 1694 and modified in 1846. Since 2005 it has displayed a set of Nishijin-weave silk panels depicting the Thirty-Six Poetry Immortals, donated by the local weaving cooperative as a tribute to the district’s patron shrine. The subsidiary Eight Shrines (Yassha), also founded by Keishoin in the 1690s, line the south edge of the precinct and house eight distinct deities in a single elongated structure, each bay separated by plain pillars.
Outside the east gate, the precinct’s most atmospheric feature awaits: two wooden-fronted aburimochi shops — Ichiwa, which claims a founding of 1000 CE making it arguably the oldest continuously operating food business in Japan, and Kazariya, established in the early Edo period — face each other across a narrow stone path. Both grill skewered rice cakes over binchotan charcoal and dress them with white miso sauce; the two shops use different miso recipes and open on the same days, creating a quiet, centuries-old rivalry that has become as much a part of Imamiya’s identity as any ritual.
Festivals & Rituals
Imamiya’s ritual calendar pivots on two great festivals rooted in the same Heian-period fear of pestilence. The Yasurai Matsuri, held every year on the second Sunday of April, is designated a National Important Intangible Folk Cultural Property and counted among Kyoto’s three great kii (unusual) festivals. It originated from agrarian village rites aimed at pacifying the spirits believed to ride cherry-blossom petals — those pink clouds that signal the dangerous seasonal transition when disease was thought to spread. Participants in demon masks and flamboyant costumes carry giant flower-topped parasols called hanagasa through the neighbourhood streets, dancing and drumming to coax wandering plague spirits inside the parasols and seal them there. Those who pass beneath the parasol canopy are said to be protected from illness for the year.
The Imamiya Matsuri unfolds in May across a sequence of events: the mikoshi are brought out on May 1st, the shinkōsai procession carries them through the parish on May 5th, the kankōsai return procession takes place on the Sunday closest to the 15th, and the shrines are settled back on May 19th. Like the Yasurai Matsuri, it traces its lineage to the 994 goryo-e ceremony — Kyoto’s oldest tradition of appeasing vengeful or restless spirits through communal ritual.
The reisai (main annual festival) falls on October 8th and 9th. A monthly neighbourhood flea market is held on the 1st of each month in the precincts, a community tradition that keeps the shrine woven into daily Nishijin life.
Best Time to Visit
April is the most atmospheric month: cherry blossoms fill the paths to Daitoku-ji, and the Yasurai Matsuri on the second Sunday brings costumed dancers and hanagasa parasols through streets that otherwise see very little tourist traffic. The shrine sits far enough north of central Kyoto that spring crowds here remain manageable even when the city’s famous blossom spots are overwhelmed. Early May brings the Imamiya Matsuri processions, offering another window of festival colour without the peak-season hotel prices.
Ordinary mornings in autumn or winter have their own appeal: the great trees that screen the compound from the street take on amber and rust in November, and the smell of grilling aburimochi in the cold air is one of Kyoto’s quieter pleasures. Summer is humid and quiet; the shrine’s interior forest provides shade, and the lack of crowds makes it a good season for unhurried exploration of the subsidiary shrines.
Visiting Information
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.