When on September 24, 1862 the Lord of Aizu Domain, Katamori MATSUDAIRA, was appointed to the post of Kyoto shugoshoku, the temple became the headquarters for Aizu Domain of Kyoto shugoshoku; 1,000 samurai warriors were always stationed in Kyoto and replaced every two years.
会津藩主松平容保公が幕末の文久2年閏8月1日（1862年9月24日）に京都守護職に就任すると、京都守護職会津藩の本陣となり、藩兵1,000人が京都に常駐し1年おきに交替した。