Egypt, China, and Japan responded differently to Western imperialism in the 19th century: - Egypt tried to Westernize under Muhammad Ali Pasha but failed when it fell into debt. Britain later established a protectorate over Egypt in 1882. - China stuck to tradition and was defeated in the Opium Wars, losing Hong Kong and being forced to open ports to trade. Foreign influence provoked the anti-foreign Boxer Rebellion. - Japan initially isolated itself but was forced to open to the West in 1854. It successfully modernized and Westernized its government and military, defeating Russia in 1904-1905 to prove itself a modern imperial power.