Various reformations were further implemented including the establishment of a civil administration office, a court of justice, and a domain school named Bunbukan, until the domain was converted to Yamakami Prefecture through the Haihan-chiken (abolition of feudal domains and establishment of prefectures) in August 1871.
その後、山上藩では民政局、裁判所、藩校である文武館などが創設されるなどの改革が行なわれたが、明治4年（1871年）7月の廃藩置県で山上藩は廃藩となって山上県となる。