 The final stages of warfare were initiated in October 1945 when, in accordance with the terms of their surrender, the Japanese tried to re-establish the authority they relinquished to Indonesians in the towns and cities.Japanese military police killed Republican "pemuda" in Pekalongan (Central Java) on 3 October, and Japanese troops drove Republican "pemuda" out of Bandung in West Java and handed the city to the British, but the fiercest fighting involving the Japanese was in Semarang.On 14 October, British forces began to occupy the city.