Rubuta ci gaba don wannan sakin layi - An kafa shingen guda uku a shekara ta farko ko ta biyu ta mulkin Sarkin Tenmu. A lokacin Yaƙin Jinshin, ya sami fa'ida ta soja mai mahimmanci akan ɗan'uwansa ta hanyar karɓar ikon waɗannan wuraren shiga zuwa babban birnin kuma don haka ya fahimci mahimmancin dabarun waɗannan wuraren. Dokar Taihō a cikin 701AD ta bayyana cewa shinge ya kamata ya sami aikin 'yan sanda da na soja. Kowane ɗayan an sanye shi da sansanin soja da makamai, kuma an sanya shi a ƙarƙashin ikon wani jami'in soja "kuge" tare da Matsayi na huɗu na Kotun. Dalilin shingen ba wai kawai don hana mamayewa daga gabas ba ne, har ma don hana duk wani ɗan tawaye tserewa daga babban birnin, An rufe shingen sosai a lokutan rikice-rikicen siyasa, kamar rashin lafiya ko mutuwar sarki. A karo na farko da aka rufe shingen a zahiri shi ne a lokacin tsaka-tsakin bayan mutuwar Empress Genmei a 722 AD. Sauran lokutan sun hada da tawayen Yarima Nagaya, da Fujiwara no Nakamaro Rebellion
da kuma Kusuko Incident. A kan canja wurin babban birnin zuwa Heian-kyō a cikin 789AD, Sarkin sarakuna Kanmu ya ba da umarnin a kawar da shingen. Koyaya, kodayake sojojin sun janye, shingen ya ci gaba da kasancewa, kuma an rufe rufe ƙofar a lokuta da yawa zuwa tsakiyar lokacin Heian.