After that, he went back and forth between Edo (later, Tokyo) and his hometown due to unquiet days of the Restoration, but he settled permanently in Tokyo after he moved to Tokyo for the third time in 1879 on Morihisa HOSOKAWA's advice.
その後維新の動乱期により国許と行き来するが、1879年（明治12年）に細川護久の勧めで三度目の上京をして以後は東京に永住。