When the Kamakura Shogunate was subverted after the Genko Incident in 1333, he went back to Kyoto, and he also moved to Yoshino in attendance of Godaigo and became Chief Abbot of To-ji Temple and daisojo (a Buddhist priest of the highest order).
1333年（正慶2/元弘3）に元弘の変の後に鎌倉幕府が滅亡すると京都へ戻り、建武の新政から南北朝時代となっても後醍醐方に属して吉野へ随行し、東寺長者、大僧正となる。