The Tale of the Kanda Myojin Shrine
At a Glance
- Central figures: Daikokuten, god of wealth and agriculture; Ebisu, god of fisheries and commerce; and Taira no Masakado, a Heian-period warrior who declared himself emperor in the eastern provinces and became a guardian spirit after his death.
- Setting: Kanda Myojin Shrine, originally built near the Kanda River in the 8th century during the Tenpyo era, later relocated during the Edo period to its current site near Akihabara in Tokyo.
- The turn: Taira no Masakado, killed as a rebel against the imperial government, is enshrined not as a condemned enemy but as a goryo - a powerful restless spirit transformed into a protector deity of Edo.
- The outcome: The three deities together became the spiritual guardians of the city, with the Tokugawa shogunate revering the shrine as a protector of Edo against misfortune and uprisings.
- The legacy: The Kanda Matsuri, one of the Three Great Festivals of Edo, is held every May in odd-numbered years and remains one of Tokyo’s most significant celebrations.
Masakado’s head would not stay buried. That is, in essence, the story at the heart of Kanda Myojin. A Heian warrior who raised an army, claimed the imperial throne for himself in the eastern provinces, and was cut down for it - he should have been a cautionary name, spoken quietly. Instead, the city that rose on the Kanto plain took him in. It enshrined him. It asked him to stay.
Alongside him stand two of the Shichi Fukujin - the Seven Lucky Gods - whose presence at any shrine signals a place where commerce, harvest, and household prosperity are taken seriously. The combination is unusual: a wealth deity, a fisherman’s god, and a ghost of rebellion. That the three of them share a single sacred space says something particular about how Edo understood power, and what it asked of its protectors.
The Shrine Before Edo
The origins of Kanda Myojin reach back to the Tenpyo era of the 8th century, more than 1,270 years ago. The shrine stood then near the Kanda River - a different landscape entirely from the dense city that would eventually surround it. Its earliest dedications were to Daikokuten and Ebisu, both already ancient figures in the Japanese religious imagination by that point.
Daikokuten carries a mallet of fortune and stands on bales of rice. His domain is abundance - not just coin but harvest, the full storehouse, the household fed through winter. Merchants came to him, yes, but so did farmers, and those who simply needed the year’s crops to hold. Ebisu stands beside him with a fishing rod and a red sea bream tucked under his arm, cheerful in the way that genuine good luck sometimes appears: unhurried, a little accidental, reliable. Between them, the shrine held everything a working family might pray for.
When Edo Castle expanded in the Edo period and the city began its extraordinary growth, the shrine was relocated to accommodate the new urban order. Its position near the castle placed it squarely within the spiritual architecture of the shogunate - not a neighborhood shrine but a city shrine, a guardian of the whole.
Taira no Masakado at the Eastern Gate
Masakado died in 940. He had spent years in open conflict with the Fujiwara clan and the imperial court, gradually consolidating power in the Kanto region until he declared himself Shinno - the New Emperor - in 939. The response from Kyoto was swift. Two commanders moved against him simultaneously, and he was killed in battle the following year, his head sent to the capital.
But the dead do not always accept the verdicts of the living. The stories that gathered around Masakado’s name after his execution were not stories of a humbled rebel. They were stories of a goryo - a restless, powerful spirit, the kind that arises when a person of rank and force dies in anger or injustice. Such spirits demanded propitiation. They could curse a city, bring plague, turn the weather against a harvest.
Edo chose something more useful than fear. The city enshrined Masakado at Kanda Myojin and named him a guardian. His energy - the same force that had held the Kanto plain against the court’s authority - was redirected. He would protect Edo now. His defiance, which had once threatened the capital, became the wall between the city and harm.
The Tokugawa shoguns who governed from Edo understood the logic. A shrine with Masakado in it was a shrine with serious power in it. They revered Kanda Myojin as a protector of the city, believing its deities provided spiritual cover against misfortune and rebellion both - perhaps knowing, at some level, that the most effective guardian is the one who knows exactly what an uprising looks like from the inside.
The Kanda Festival and the Rhythm of the City
The Kanda Matsuri - the Kanda Festival - became, during the Edo period, one of the three great festivals of the city, alongside the Sanno Festival and the Fukagawa Festival. Held in May, it moved through the streets with mikoshi, the portable shrines carried on the shoulders of the neighborhood associations, accompanied by traditional music and the organized chaos of a city celebrating itself.
The festival was not merely entertainment. It was a ritual enactment of the relationship between the city and its guardian deities - a demonstration that Edo was watched over, that its prosperity was acknowledged, that the kami were still present and had not withdrawn their protection. The shogunate’s investment in the festival reflected how seriously that relationship was taken. A city that honored its gods properly was a city that expected to continue prospering.
The Kanda Matsuri persists today, still held in odd-numbered years each May, still featuring the mikoshi processions through streets that now run between office buildings and electronics shops. The ritual form has held across the centuries even as the city around it has transformed almost beyond recognition.
Prayers at the Counter and the Server Room
The shrine’s position near Akihabara - Tokyo’s dense electronics and technology district - has given its ancient functions a new set of applicants. Alongside merchants praying for favorable accounts and households seeking good fortune in the new year, Kanda Myojin now offers blessing ceremonies for IT businesses, startups, and electronic devices. Tech workers bring laptops. Developers bring hard drives. The shrine’s priests perform the appropriate rituals.
This is not as strange as it might first appear to someone unfamiliar with how Shinto works. The kami of Daikokuten and Ebisu are gods of commerce and productive enterprise - the category has simply expanded. A fishing boat and a server rack are both tools by which people pursue livelihood. The prayer is structurally the same. The omamori - protective charms - sold at Kanda Myojin for business success and financial protection are among the most sought-after at any shrine in the city.
Business owners come to perform rituals against bankruptcy. Students come seeking success in examinations. The prayers layer over one another across the centuries, the incense smoke rising past architecture that has been rebuilt and restored many times but always returned to the same ground.
Masakado’s City
There is a detail that stays with you, thinking about Kanda Myojin. Masakado’s head, according to some versions of the tradition, was buried somewhere in what is now central Tokyo - and the site is still marked, still tended, still considered dangerous to disturb. Buildings have gone up around it and come down again. The city has been leveled by earthquake and fire and rebuilt. The marker has remained.
At the shrine itself, Masakado is not presented as a condemned rebel grudgingly rehabilitated. He is a guardian deity of the first order, a protector of the city that occupies the territory he once held against the court. The people of Edo took a figure the central government had executed for treason and made him the spiritual anchor of their home.
Every May, in odd-numbered years, the mikoshi bearing his name - and those of Daikokuten and Ebisu - moves through the streets of a city of fourteen million people. The drums carry across the neighborhoods. The procession winds past the towers of Akihabara. And somewhere beneath the pavement, the ground holds what it has always held.