 After World War II ended, Indonesian nationalists declared independence on 17 August 1945, and the government of the Jakarta City was changed into the Jakarta National Administration in the following month.During the Indonesian National Revolution, Indonesian Republicans withdrew from Allied-occupied Jakarta and established their capital in Yogyakarta.After securing full independence, Jakarta again became the national capital in 1950.