After Takauji ASHIKAGA and Yoshisada NITTA, who lived in Kozuke Province, fought well and defeated Kamakura bakufu, the Kenmu Restoration was started by Emperor Godaigo, and Doyo was appointed as a judge of the Zasshoketsudansho (a type of civil court).
足利尊氏、上野国の新田義貞らの活躍で鎌倉幕府は滅亡し、入京した後醍醐天皇により建武の新政が開始されると、雑訴決断所の奉行人となる。