Input (grade 8): The Tokugawa shogunate ruled from Edo Castle from 1603 until 1868, when it was abolished during the Meiji Restoration.
Output (grade 6): It was established by Tokugawa Ieyasu and ruled from 1600 until 1868. The Tokugawa shogunate was abolished during the Meiji Restoration.