Indonesia stretches across more than 17,000 islands between the Indian and Pacific Oceans, astride the sea lanes that had drawn merchants to Srivijaya, Majapahit, and the Moluccas (Spice Islands) for a thousand years. The Dutch East India Company (VOC) and then the Dutch state gradually brought the islands under one administration, the Dutch East Indies, run for the profit of the Netherlands through systems such as the Cultivation System. Colonial rule gave hundreds of ethnic groups a shared government and, in Malay, a shared language, and so, unintentionally, the outline of a nation.
Japan's conquest in 1942 swept the Dutch away in weeks. When Japan surrendered, Sukarno and Mohammad Hatta declared independence on August 17, 1945. The Netherlands, itself just freed from German occupation, tried to return. Four years of guerrilla resistance, two Dutch military offensives, and negotiation followed. The outcome was decided as much abroad as on the battlefield: the United Nations condemned the offensives, and the United States, judging the Indonesian republic reliably anticommunist, threatened to cut off Dutch aid under the Marshall Plan. The Netherlands transferred sovereignty in December 1949.
The new state was huge, diverse, and poor. A parliamentary system produced short-lived cabinets and regional rebellions, and in 1959 Sukarno replaced it with presidential rule he called Guided Democracy. Under him Indonesia hosted the Bandung Conference and helped found the Non-Aligned Movement, while its Communist Party grew into the largest outside the communist states.
That alarmed the army and Washington. After a murky coup attempt in 1965, General Suharto seized control. In the months that followed, soldiers and civilian militias killed an estimated 500,000 to one million suspected communists (some estimates run higher), one of the worst mass killings of the Cold War. Suharto's "New Order" (1966–1998) aligned with the West, welcomed foreign investment, and delivered sustained growth alongside corruption and repression, including the invasion of East Timor in 1975. It fell amid the Asian financial crisis, and Indonesia has since been a democracy. It is the world's most populous Muslim-majority country and a founding member of Association of Southeast Asian Nations (ASEAN).