The story of Hie Shrine begins long before modern Tokyo. In the Kamakura period, the Edo clan enshrined a Sanno shrine in this region. Later, during the Bunmei years, the warrior Ota Dokan invited the Sanno deity from Kawagoe into Edo Castle, and that act laid the foundation of today's shrine. Then history turned. In 1590, Tokugawa Ieyasu made Edo Castle his residence, and he revered the shrine as the guardian deity of the Tokugawa family and the birth deity of Edo. As the castle grew, the shrine was moved to Kojimachi Hayabusacho, and then in the second year of Manji, which is 1659, it settled on its present hill in Nagatacho. The centuries kept changing its title. When the castle became the Imperial Palace, the shrine was honored as its protector. In 1868, it formally took the name Hie Shrine, though it had long been called names such as Hie Sanno Shrine, Edo Sanno Gongen, and Kojimachi Sanno. For parishioners it is simply the mountain, and for everyone else it has always been Sanno-san.