The Tokugawa shogunate, also known as the Edo shogunate, was the military government of Japan during the Edo period from 1603 to 1868.
The Tokugawa shogunate was established by Tokugawa Ieyasu after victory at the Battle of Sekigahara, ending the civil wars of the Sengoku period following the collapse of the Ashikaga shogunate. Ieyasu became the shōgun, and the Tokugawa clan governed Japan from Edo Castle in the eastern city of Edo (Tokyo) along with the daimyō lords of the samurai class.
The Tokugawa shogunate organized Japanese society under the strict Tokugawa class system and banned the entry of most foreigners under the isolationist policies of Sakoku to promote political stability. Japanese subjects were also barred from leaving the country.