sentences:  Following the Siege of Osaka, the domain was awarded to Niwa Nagashige, who was ordered to build a completely new castle by Shōgun Tokugawa Hidetada.The Niwa were followed by the Naitō clan, who continued to develop the castle and its surrounding castle town; however, under the Tokugawa shogunate the domain saw frequent changes of "daimyō".During the Bakumatsu period, Matsudaira Yasuhide was transferred to Kawagoe Domain, and Abe Masakiyo was transferred from neighbouring Shirakawa Domain.