In 1863, Hijikata Toshizo came to Kyoto with Kondo Isami as part of the Roshigumi. When part of the group returned to Edo, Hijikata and Kondo stayed, seeking the protection of the Aizu domain under Matsudaira Katamori, Kyoto's military governor, whose headquarters stood at Konkai-komyoji. This became the origin of the Shinsengumi, giving the temple its name as their birthplace.