Until the Meiji Restoration, Japanese people were subject to both the local authority of the daimyō and the national authority of the Tokugawa shogunate, who pledged allegiance to the Emperor.
The idea of Japan as a nation was a topic for scholarly inquiry during much of the Edo period.