尊王攘夷
The twelfth Sakai "daimyō", Sakai Tadaaki, also served as "Kyoto Shoshidai" and worked with Ii Naosuke to implement the "Kōbu gattai" between the shogunate and the Imperial Court and suppress the Mito rebellion led by Takeda Kōunsai and other pro-Sonnō jōi partisans in Kyoto. He retired in 1862, but returned to power under the new name Sakai Tadayoshi after the defeat of the shogunate in the Battle of Toba-Fushimi in the 1868 Boshin War to lead the domain into the pro-imperial cause. He was appointed imperial governor of Wakasa under the new Meiji government, ruling until the abolition of the han system in 1871.