The Indonesian National Revolution, or the Indonesian War of Independence, was an armed conflict and diplomatic struggle between the Republic of Indonesia and the Dutch Empire and an internal social revolution during postwar and postcolonial Indonesia. It took place between Indonesia's declaration of independence in 1945 and the Netherlands' recognition of Indonesia's independence at the end of 1949.
The four-year struggle involved sporadic but bloody armed conflict, internal Indonesian political and communal upheavals, and two major international diplomatic interventions. Dutch military forces were able to control the major towns, cities and industrial assets in Republican heartlands on Java and Sumatra but could not control the countryside. By 1949, international pressure on the Netherlands, the United States threatening to cut off all economic aid for World War II rebuilding efforts to the Netherlands and the partial military stalemate became such that the Netherlands recognised Indonesian independence.
The revolution marked the end of the colonial administration of the Dutch East Indies, except for New Guinea.