Chōshū expedition in 1864 and Second Chōshū expedition in 1866. However at the start of the Boshin War, as Matsudaira Yoshinori was leading his armies in support of Tokugawa forces at the Battle of Toba-Fushimi, he received word that the Shogun Tokugawa Yoshinobu had abandoned his army and had fled Osaka by ship back to Edo. He decided to return to Akashi without combat and soon after defected to the Meiji government. His forces were ordered to fight in the Boshin War as part of the rear guard against Himeji Domain and in Echigo Province. In 1871, with the abolition of the han system, Akashi Domain became Akashi Prefecture, and was incorporated into Hyōgo prefecture via Himeji Prefecture and Shikama Prefecture. The Echizen Matsudaira family became a viscount in the kazoku peerage system in 1884. Holdings at the end of the Edo period Unlike most domains in the han system, which consisted of several discontinuous territories calculated to provide the assigned kokudaka, based on periodic cadastral surveys and projected agricultural yields, Akashi Domain was a single unified holding. Harima Province 144 villages in Akashi District (entire district) 70 villages in Mino District List of daimyō {| class=wikitable ! #||Name || Tenure || Courtesy title || Court Rank || kokudaka |- |colspan=6| Ogasawara clan, 1617-1632 (Fudai) |- ||1||||1617 - 1632||Sakon-no-shogen (左近将監); Jijū (侍従)|| Junior 4th Rank, Lower Grade (従四位下)||100,000 koku |- |colspan=6| Toda-Matsudaira clan, 1633-1639 (Fudai) |- ||2||||1633 - 1634||Tanba-no-kami (丹波守)|| Junior 5th Rank, Lower Grade (従五位下)||70,000 koku |- ||3||||1634 - 1639||Tanba-no-kami (丹波守)|| Junior 5th Rank, Lower Grade (従五位下)||70,000 koku |- |colspan=6| Okubo clan, 1639-1649 (Fudai) |- ||1||||1639 - 1649||Kaga-no-kami (加賀守)|| Junior 4th Rank, Lower Grade (従四位下)||70,000 koku |- |colspan=6| Fujii-Matsudaira clan, 1649-1679 (Fudai) |- ||1||||1649 - 1659||Yamashiro-no-kami (山城守)|| Junior 5th Rank, Lower Grade (従五位下)||70,000 koku |- ||2||||1659 - 1679||Hyuga-no-kami (日向守)|| Junior 5th Rank, Lower Grade (従五位下)|| 65,000 koku |- |colspan=6| Honda clan, 1679-1682 (Fudai) |- ||1||||1679 - 1682||Izumo-no-kami (出雲守)|| Junior 5th Rank, Lower Grade (従五位下)||60,000 koku |- |colspan=6| Echizen-Matsudaira clan, 1682-1871 (Shinpan) |- ||1||||1682 - 1701||Wakasa-no-kami (若狭守); Ichi-no-tsukasa (市司)|| Junior 4th Rank, Lower Grade (従四位下)||60,000 koku |- ||2||||1701 - 1743||Sahyoe-no-kami (左兵衛督); Jijū (侍従); Tajima-no-kami (但馬守)|| Junior 4th Rank, Lower Grade (従四位下)||60,000 koku |- ||3||||1743 - 1764||Sahyoe-no-kami (左兵衛督)|| Junior 4th Rank, Lower Grade (従四位下)||60,000 koku |- |4||||1764 - 1784||Sahyoe-no-kami (左兵衛督); Wakasa-no-kami (若狭守)|| Junior 4th Rank, Lower Grade (従四位下)||60,000 koku |- ||5||||1784 - 1786||Sahyoe-no-kami (左兵衛督))|| Junior 5th Rank, Lower Grade (従五位下)||60,000 koku