Japanese nationalism is a form of nationalism that asserts the belief that the Japanese are a monolithic nation with a single immutable culture, and promotes the cultural unity of the Japanese. Over the last two centuries, it has encompassed a broad range of ideas and sentiments which have been harbored by the Japanese people in relation to their native country, its cultural nature, its political system, and its historical destiny. It is useful to distinguish Japanese cultural nationalism (see also nihonjinron) from political or state-directed nationalism (i.e., Shōwa statism), since many forms of cultural nationalism, such as those which are associated with folkloric studies (i.e., Yanagita Kunio), have been hostile to state-fostered nationalism.
In Meiji Japan, nationalist ideology consisted of a blend of native and imported political philosophies, initially developed by the Meiji government to promote national unity and patriotism, first in defense against colonization by Western powers, and later in a struggle to attain equality with the Great Powers. It evolved throughout the Taishō and Shōwa periods, when it was used to justify the formation of an increasingly totalitarian government and overseas expansionism, and it also provided a political and ideological foundation for the actions of the Japanese military in the years leading up to World War II.
During the final days of the Tokugawa shogunate, the perceived threat of foreign encroachment, especially after the arrival of Commodore Matthew C. Perry and the signing of the Kanagawa Accord, led to increased prominence to the development of nationalist ideologies. Some prominent daimyō promoted the concept of fukko (a return to the past), while others promoted ōsei (the Emperor's supreme authority). The terms were not mutually exclusive, merging into the sonnō jōi (revere the emperor, expel the barbarians) concept, which in turn was a major driving force in starting the Meiji Restoration.
The Meiji Constitution of 1889 defined allegiance to the State as the citizen's highest duty.