information:highlighting, stylistic:style_transfer, structural:reformatting
Rapid growth, Jameson Raid and the Second Boer War

Like many late 19th-century mining towns, Johannesburg was a rough and disorganised place, populated by white miners from all continents, African tribesmen were recruited to perform unskilled mine work, African women beer brewers cooked for and sold beer to the black migrant workers, a very large number of European prostitutes, gangsters, impoverished Afrikaners, tradesmen, and the " AmaWasha ", Zulu men who surprisingly dominated laundry work. As the value of control of the land increased, tensions developed between the Boer –dominated Transvaal government in Pretoria and the British, culminating in the Jameson Raid that ended in fiasco at Doornkop in January 1896. The Second Boer War (1899–1902) saw British forces under Field Marshal Frederick Sleigh Roberts, 1st Earl Roberts, occupy the city on 30 May 1900 after a series of battles to the south-west of its then-limits, near present-day Krugersdorp.

Fighting took place at the Gatsrand Pass (near Zakariyya Park) on 27 May, north of Vanwyksrust—today's Nancefield, Eldorado Park and Naturena—the next day, culminating in a mass infantry attack on what is now the waterworks ridge in Chiawelo and Senaoane on 29 May.

During the Boer war, many African mineworkers left Johannesburg creating a labour shortage, which the mines ameliorated by bringing in labourers from China, especially southern China. After the war, they were replaced by black workers, but many Chinese stayed on, creating Johannesburg's Chinese community, which during the apartheid era, was not legally classified as "Asian", but as "Coloured". The population in 1904 was 155,642, of whom 83,363 were whites.