 Leading up to the Meiji Restoration, the Tokugawa Shogunate realized there was a need to prepare northern defenses against a possible Russian invasion and took over control of most of Ezochi.The Shogunate made the plight of the Ainu slightly easier, but did not change the overall form of rule.Hokkaido was known as Ezochi until the Meiji Restoration.