In December of the year of 1867 in which 15th Shogun Yoshinobu TOKUGAWA restored Imperial Rule and dissolved the shogunate, Shinpei was released from house arrest and reinstated as superintendent officer of the district.
15代将軍徳川慶喜が大政奉還を行って幕府が消滅した慶応3年（1867年）の12月に新平は蟄居を解除され、郡目付として復帰する。