During the Onin War, it lost many of its buildings and declined for a while, but thanks to friendly relations with the Toyotomi clan and Gien, the abbot in those days, its temples were built and a full-scale restoration was done with financial aid from the clan.
応仁の乱では伽藍の多くを失い、衰微した時期があったが、当時の座主であった義演が豊臣氏と友好的な関係であったため、豊臣氏が財政的な援助を行って伽藍を建立し、本格的な復興を果たした。