during the second world war the dutch lost control and in august 1945, sukarno, an influential nationalist leader, declared independence and was appointed president. after some fights the netherlands formally recognised indonesian independence in december 1949 (with the exception of the dutch territory of west new guinea).