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.