Answer
Indonesia declared its independence from the Dutch on August 17, 1945, after the Japanese surrender to the Allies in World War II. The Dutch, however, refused to recognize Indonesian independence and attempted to reassert their control over the country. This led to a four-year war of independence, which ended in 1949 with the Dutch recognizing Indonesia as an independent nation.