Kanda Myojin-Shine which enshrined TAIRA no Masakado, a renown samurai who sought the independence of the Kanto region and who said to have later turned into a vengeful ghost, was relocated from Ote-mon Gate (The area surrounding the present day Kubi-zuka [Mound of Heads]) to Surugadai to the northeast of Edo Castle which was known as a kimon (Literally translated as the "demons gate," which signified an inauspicious direction in Onmyodo [yin-yang philosophy]), and enshrined their as a Shinto deity and protector of Edo.
関東の独立を掲げた武将で、代表的な怨霊でもある平将門を祭る神田明神は、大手門前（現在の首塚周辺）から、江戸城の鬼門にあたる駿河台へと移され、江戸惣鎮守として奉られた。