During the Imjin Wars, when Japanese warlord Toyotomi Hideyoshi ordered several attempted invasions of Korea, the temple became a stronghold for bands of warrior monks led by the great saint Sosan. At age 73, he led bands against the Japanese armies, even assisting recapture Pyongyang from the Japanese. He died at the temple in 1604. During the war, the temple was charged with protection the Chonju copy of the four Annals of the Yi Dynasty, which was secured in the nearby Puryong Hermitage. This copy was the only one to survive the war.