Two weeks after the proclamation of independence, Surabaya established its own government in the shape of a resident, R. Sudirman. The formation of government in Surabaya caused disputes between the republican forces and Japanese troops, resulting in various skirmishes across the city. This was because when the Japanese surrendered, they were obliged to remain in power until the allied forces arrived. The arrival of Allied forces in Surabaya created tensions with the newly established government of Indonesia, reaching peak on 10 November 1945 where a major battle between the Surabayan residents led by Sutomo and Allied forces.