What Is the 'Spiritual Barrier' Protecting Gujo Hachiman Castle? Reading the Castle Town Through Kimon and Ura-kimon
Gujo Hachiman Castle is known for the view from its keep and for its autumn foliage. Many visitors are satisfied with those sights and head back down the mountain. But inside the keep is an exhibit that feels a little different from the others.
It shows a diagram of the castle in relation to the “kimon” and “ura-kimon” directions. In traditional belief, the northeast is the kimon – the unlucky “Demon Gate” – where Yasaka Shrine stands. Directly opposite, in the southwest ura-kimon direction, is Kishitsurugi Shrine. Trace the map with Gujo Hachiman Castle at the center, and an invisible line emerges: Yasaka Shrine – Gujo Hachiman Castle – Kishitsurugi Shrine.
There may have been another layer of protection beyond the stone walls. Once you consider that possibility, the familiar castle begins to look slightly different. In this article, we walk through Gujo Hachiman Castle and its castle town from the perspectives of traditional directional beliefs and the imagery of oni, or demons.
Stone Walls Were Not the Castle’s Only Protection
When we think of what protected a castle, stone walls, moats, and samurai are the first things that come to mind. Yet enemies were not the only dangers people once feared.
Fire. Epidemics. Natural disasters. Famine. And ominous events with no obvious explanation. There were many threats that no sword could cut down. For that reason, when castles and towns were planned, people considered not only the strategic advantages of the terrain but also direction and the protective power of deities and Buddhist figures. Avoiding misfortune through such beliefs formed part of the design itself.
One of the best-known examples was the “kimon.” The kimon is the northeast, traditionally believed to be a direction through which misfortune could enter. The exact opposite direction, the southwest, is called the “ura-kimon.” According to the exhibit inside Gujo Hachiman Castle, Yasaka Shrine was placed in the kimon direction and Kishitsurugi Shrine in the ura-kimon direction to protect the castle. Swords and stone walls offered one kind of defense; direction and prayer offered another. For people of the time, both were equally part of “protecting the castle.”


Why Were Oni Believed to Come from the Northeast?
Why, in the first place, does the northeast carry the ominous name “Demon Gate”? In the past, directions were expressed using the twelve animals of the Chinese zodiac. The northeast corresponds to ushitora – literally the direction between the Ox and the Tiger.
Ushi means ox, and tora means tiger. The oni familiar to us today is often depicted with ox-like horns and tiger-striped clothing. One explanation is that the appearance of the oni developed from the ushitora direction from which demons were believed to come. In other words, even the horns and tiger pattern were born from a directional idea.
The oni we drive away by throwing beans and shouting “Oni wa soto!” at Setsubun was not only a monster from stories. For people in the past, oni could also represent disasters beyond human explanation, such as illness and calamity. That is why the direction from which such misfortune was believed to enter was blocked through the protective power of deities and Buddhist figures.

The Old Name of the Mountain Where the Castle Stands
Here is one detail that is hard not to find intriguing. Mt. Hachiman, where Gujo Hachiman Castle stands, is said to have once been called “Ushikubiyama” – literally, “Ox-Neck Mountain.” From the castle town, the mountain also rises almost exactly to the northeast, in the ushitora direction.
A mountain bearing the name of an ox, standing in the ushitora direction, with a castle on top. There is, of course, no definitive evidence connecting this fact to geomancy or directional belief. It may simply be coincidence. Even so, if you imagine that the castle was placed to watch over the town from the direction once regarded as an entrance for misfortune, the landscape of the castle town suddenly begins to feel like part of a story.
A Sacred Talisman Is Kept in the Roof Space of the Keep
The castle’s exhibit on directional belief introduces another fascinating detail: a sacred talisman from Hachiman Shrine is said to be kept in the roof space of the keep.
Hachiman Shrine stands between the Yoshida River and the castle and was traditionally regarded as a place where successive castle lords offered prayers. Armor, swords, and ema votive plaques dedicated by former lords are still preserved there, and the shrine is also connected to the origin of the place name “Gujo Hachiman.”
Shrines guarded the outer directions, while a sacred talisman protected the heart of the castle. Protection from the outside, and protection from within – a double layer. You cannot see the talisman when you look up, but knowing that another form of protection remains above the roof may change the way you experience even the dim wooden stairways and the scent of timber inside the keep.

Why Do Thirteen Temples Stand at the Ends of Streets?
The defenses of Gujo Hachiman did not end with two shrines. Walk through the castle town and you will encounter an astonishing number of temples: thirteen within this compact area. As you wander, you may notice a pattern.
At the end of a street, there is a temple.
This was not accidental. The castle town of Gujo Hachiman took much of its present form during a major reconstruction in 1667 under Endo Tsunetomo. Temples from the surrounding area were gathered into the town, forming an arrangement referred to as “Hakke Kyushu.” They were positioned at the ends of streets and are said to have served defensive purposes in times of conflict.
Temples have broad grounds and large buildings. Positioned at the end of a street, they could block an enemy’s direct advance and serve as bases for defenders. They were places of faith, but they were also part of the town’s defensive structure.
The same way of thinking can be found underfoot. The waterways running through town served everyday life, but they also functioned as fire-prevention infrastructure in a place that had suffered repeated major fires.
A number of temples were established during the time of castle lord Endo Yoshitaka. These included Chokei-ji in 1601, Daijo-ji in 1603, and Jion Zenji in 1606. Other temples such as Tosen-ji, Saisho-ji, and Anyo-ji were also established throughout the castle town.
Seen as a whole, the layers of protection around Gujo Hachiman Castle included:
・Shrines guarding the kimon and ura-kimon directions
・Thirteen temples positioned at the ends of streets
・A network of waterways serving as protection against fire
A street you once passed without a second thought – simply thinking, “There are a lot of temples here” – begins to look like part of a larger plan. That is one of the pleasures of walking through Gujo Hachiman.
Kyoto Was Shaped by a Similar Idea
Town planning that took the kimon into account was not unique to Gujo Hachiman. Kyoto is perhaps the most famous example.
To the northeast – the kimon direction of the former Heian-kyo capital – stands Enryaku-ji on Mt. Hiei. To the southwest, in the ura-kimon direction, stands Iwashimizu Hachimangu Shrine. Both have long been revered as protectors of the capital.
The scale is entirely different. Even so, there is a clear overlap in the underlying idea:
・Protecting Kyoto through the kimon and ura-kimon directions
・Protecting Gujo Hachiman Castle through the kimon and ura-kimon directions
Gujo Hachiman is sometimes called the “Little Kyoto of Oku-Mino.” Perhaps that resemblance lies not only in rows of narrow-fronted traditional townhouses. The way people thought about protecting an urban settlement may also have been echoed here. In earlier town planning, designing a city meant more than laying roads and digging moats; it also meant deciding where deities, shrines, and temples should be placed.
Gujo Odori Is Danced on the Festival Nights of Temples and Shrines
These beliefs survive not only in the layout of the town. Gujo Odori, the summer dance festival that symbolizes Gujo Hachiman, is also deeply connected with local temples and shrines.
Gujo Odori is held for more than thirty nights as a series of “ennichi odori” dances linked to festival days throughout the town. Look at the schedule and names of shrines and temples appear one after another: the Kishitsurugi Shrine River Festival, the Jion Zenji Benten Festival, the Hiyoshi Shrine Ancestral Festival, and more. Yasaka Shrine, which guards the kimon, and Kishitsurugi Shrine, which guards the ura-kimon, still live on in the names of dance nights today.
It would be too simple to describe every night of Gujo Odori as a direct “offering to the gods.” Yet beneath the festival lies a culture of honoring deities and Buddhist figures, remembering ancestors, and dancing while wishing for peace in the community. In 2022, Gujo Odori was included in UNESCO’s Representative List of the Intangible Cultural Heritage of Humanity as part of Japan’s Furyu-odori ritual dances.
The castle was protected through faith. The town was protected by temples and shrines. And in summer, people still gather and dance on the festival nights of those same sacred places. Beginning with the idea of directional belief, Gujo Hachiman Castle, the castle town, and Gujo Odori start to appear connected by a single line.

Was Gujo Hachiman Castle the Center of a Spiritual Barrier?
Of course, there is no way to prove that oni truly came from the northeast. But Gujo Hachiman Castle does preserve a tradition that the kimon and ura-kimon directions were taken into account, and shrines do in fact stand in those directions.
Thirteen temples stand at the ends of streets in the castle town. A sacred talisman is kept in the roof space of the keep. And even today, summer dance circles form under festival names associated with temples and shrines.
Seen together, these details suggest that Gujo Hachiman Castle did not protect the town by itself. The castle, the mountain, the rivers, the temples, the shrines, and prayer all worked together in the imagination of the town’s defenses. The castle town itself begins to look like one great spiritual barrier.
When you visit Gujo Hachiman Castle, do not stop with the spectacular view from the keep. Take a moment to look at the exhibit on traditional directional belief inside the castle. Then, from the top floor, look down over the town and imagine: “Perhaps this town still holds the traces of that barrier.” The familiar line of rooftops may begin to look just a little more mysterious.

Spend a Night Inside the Barrier
On a day trip, the town shows you only its daytime face. After the visitors leave, the sound of the waterways seems closer, the shadows of temples at the ends of streets deepen, and the illuminated Gujo Hachiman Castle floats quietly above the mountain.
Sui to Sui is a traditional townhouse accommodation reserved for one group per day. Stay within the “barrier” and take a walk through Gujo Hachiman at night. It may become a chance to trace, with your own footsteps, the invisible lines you imagined during the day.

