After the Meiji Restoration, he successively worked in positions such as goyogakari (the person in charge of the command from Imperial Household Ministry) in the foreign affairs office (1868), the governor of Hyogo Prefecture (1869), the prefectural governor of Kanagawa Prefecture (1871), the head of land-tax reform office (1872), but he resigned from his post as the result of having been furious about the current conditions of the government that was dominated by the Satsuma and Choshu clans.
明治維新後は外国事務局御用係（1868年）、兵庫県知事（1869年）、神奈川県令（1871年）、地租改正局長（1872年）などを歴任するが、薩長藩閥政府の現状に憤激し、官を辞した。