In 1582, after defeating Akechi Mitsuhide at the Battle of Yamazaki, Toyotomi Hideyoshi besieged Shoryuji Castle, where the defeated Mitsuhide had taken refuge. Named after this temple, the castle saw Mitsuhide flee that same night toward Sakamoto Castle, only to die en route. The temple thus marks where the decisive struggle between Hideyoshi and Mitsuhide reached its conclusion.