In 1869, he came to work for the national government and later became a judge of Chosho-shi (court for civil suits), gonhanji (assistant judicial officer) of Hakodate-fu government and kaitaku hangan (magistrate of Hokkaido Development Commissioner).
明治2年（1869年）には政府に出仕し聴訟司判事、箱館府権判事開拓判官を務める。