During the Hamaguri Rebellion in 1864, the temple served as a base for the seventeen patriots including Maki Izuminokami of the Sonno joi (lit. Revere the Emperor, Expel the Barbarians) faction.
元治元年（1864年）には禁門の変で尊皇攘夷派の真木和泉守を始めとする十七烈士らの陣地がおかれた。