The Indonesian National Revolution (Indonesian: Revolusi Nasional Indonesia), also known as the Indonesian War of Independence (Indonesian: Perang Kemerdekaan Indonesia, Dutch: Indonesische Onafhankelijkheidsoorlog), 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' transfer of sovereignty over the Dutch East Indies to the Republic of the United States of Indonesia 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 (and, for a while, the forces of the World War II allies) 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 transferred sovereignty over the Dutch East Indies to the Republic of the United States of Indonesia.