abe tadaaki was a close confidante of "shōgun" tokugawa iemitsu and served as "wakadoshiyori" and "rōjū". his on masayoshi served as "osaka jōdai" and "kyoto shoshidai", as did many of the succeeding generations at oshi domain. in 1823, abe masanori was transferred to shirakawa domain, and oshi was given to matsudaira tadataka of the okudaira branch of the matsudaira clan, formerly from kuwana domain. the matsudaira continued to rule oshi until the meiji restoration. despite their "fudai" status, matsudaira tadakuni united the domain in favor of the meiji government after "shōgun" tokugawa keiki abandoned his forces (including tadakuni's son, masudaira tadazane)] following the battle of toba–fushimi in the boshin war. following the meiji restoration, the final "daimyō" of oshi domain, matsudaira tadanori, married a daughter of prince fushimi kuniie and was ennobled with the title of viscount ("shishaku") in the "kazoku" peerage.