The wars grew from a long quarrel between Britain and the Afrikaners (Boers), or Boers, descendants of Dutch settlers who had trekked inland from the Cape Colony in the 1830s and founded two republics, the Transvaal and the Orange Free State. Britain annexed the Transvaal in 1877. The Boers rebelled in 1880, defeated a British force at Majuba Hill in February 1881, and regained self-government in the brief First Boer War.
What changed the stakes was mineral wealth. Diamonds had been found at Kimberley in 1867, and in 1886 the largest gold deposits ever discovered were located on the Witwatersrand in the heart of the Transvaal. Foreign miners and capital poured into the new city of Johannesburg. The Transvaal president, Paul Kruger, taxed the mines and denied the mostly British newcomers the vote. Imperialists such as Cecil Rhodes and the high commissioner Alfred Milner wanted the republics absorbed into a British-dominated South Africa. After Rhodes's botched Jameson Raid of 1895–1896 and failed negotiations, war began in October 1899.
The Boers, mounted riflemen armed with modern German Mausers, at first besieged British towns and inflicted embarrassing defeats. Britain responded by sending some 450,000 imperial troops, the largest force it had ever dispatched overseas, and captured the Boer capitals in 1900. The Boers turned to guerrilla warfare. To deny them support, the British commander Lord Kitchener burned farms and herded civilians into concentration camps, where poor sanitation and food killed some 26,000 to 28,000 Boer internees, most of them children, and at least 14,000, perhaps more than 20,000, Black Africans held in separate camps. The Boers surrendered in May 1902 at the Treaty of Vereeniging.
The cost and the camps dented British enthusiasm for New Imperialism and exposed military weaknesses. To reconcile the defeated Afrikaners, Britain set aside the question of African political rights. The Union of South Africa, created in 1910 as a self-governing dominion, was controlled by its white minority, and its 1913 Natives Land Act reserved most land for whites, laying the groundwork for Apartheid in South Africa.