Battle of Aizu
During the Boshin War, the domain sided with the imperial side, and sent forces to fight in the Battle of Hokuetsu and Battle of Aizu. In July 1871, with the abolition of the han system, Ueda Domain briefly became Ueda Prefecture, and was merged into the newly created Nagano Prefecture. Under the new Meiji government, Matsudaira Tadanari, the last daimyo of Ueda Domain went to study at Rutgers University and was given the "kazoku" peerage title of "shishaku" (viscount).