After he came back to Japan, he served the new government, working hard as the Minister of Railways for the development of the railway business, including construction of the line between Shinbashi (Shinagawa) and Yokohama and Tokaido Main Line, and establishment of Nippon Railway Company (railways between Tokyo and Aomori).
帰国後は新政府に出仕し、新橋駅（品川駅）-横浜駅間の鉄道や東海道線、日本鉄道会社（東京～青森間）など、鉄道庁長官として鉄道事業の発展に尽力した。