Japan is the outstanding case of a non-Western country that answered imperialism by becoming imperialist. The Meiji Restoration of 1868 was driven by fear of sharing the fate of China after the Opium Wars, and its slogan, 'rich country, strong army,' joined industrialization to military power. Meiji leaders concluded from the behavior of the Western powers, and from reading Social Darwinism, that a modern nation either acquired colonies or became one. A resource-poor island country also wanted secure access to food, coal, iron, and markets, and a ring of territory to keep rivals at a distance.
Expansion began close to home. The northern island of Ezo was renamed Hokkaido in 1869 and settled by Japanese farmers at the expense of the indigenous Ainu; this is the settlement of adjacent territory that the CED associates with Japan, Russia, and the United States. The Ryukyu kingdom, long tied to both China and Japan, was annexed as Okinawa in 1879. Japan then turned the methods of Matthew Perry on its neighbor, using gunboats in 1876 to impose an unequal treaty on Joseon Korea.
Rivalry over Korea led to the First Sino-Japanese War (1894–1895), which brought Taiwan, Japan's first formal colony, and a large indemnity that financed heavy industry. Western powers acknowledged Japan's new standing by ending their own Unequal Treaties with it, and Britain signed an alliance in 1902. Victory in the Russo-Japanese War (1904–1905) delivered southern Sakhalin, Russia's leases and railway in southern Manchuria, and a free hand in Korea, which became a protectorate in 1905 and was absorbed in the Japanese Annexation of Korea in 1910.
Japanese colonial rule was intensive: it built railways, ports, and schools, promoted rice and sugar exports to Japan, and policed its subjects closely while pressing them to assimilate. The same drives carried further after 1910, in the Japanese Invasion of Manchuria, the Second Sino-Japanese War, and the Greater East Asia Co-Prosperity Sphere, until defeat in 1945 ended the Empire of Japan.