First Anglo-Boer WarLong-standing Boer resentment against the British turned into full-blown rebellion in the Transvaal (under British control from 1877), and the first Anglo-Boer War, known to Afrikaners as the "War of Independence", broke out in 1880. The conflict ended almost as soon as it began with a crushing Boer victory at Battle of Majuba Hill (27 February 1881). The republic regained its independence as the Zuid-Afrikaansche Republiek ("South African Republic"), or ZAR. Paul Kruger, one of the leaders of the uprising, became President of the ZAR in 1883. Meanwhile, the British, who viewed their defeat at Majuba as an aberration, forged ahead with their desire to federate the Southern African colonies and republics. They saw this as the best way to come to terms with the fact of a white Afrikaner majority, as well as to promote their larger strategic interests in the area.
Inter-war periodIn 1879 Zululand came under British control. Then in 1886 an Australian prospector discovered gold in the Witwatersrand, accelerating the federation process and dealing the Boers yet another blow. Johannesburg's population exploded to about 100,000 by the mid-1890s, and the ZAR suddenly found itself hosting thousands of uitlanders, both black and white, with the Boers squeezed to the sidelines. The influx of Black labour in particular worried the Boers, as the shortage of jobs meant that they would suffer further economic hardships.
The enormous wealth of the mines, largely controlled by European "Randlords" soon became irresistible for British imperialists. In 1895, a group of renegades led by Captain Leander Starr Jameson entered the ZAR with the intention of sparking an uprising on the Witwatersrand and installing a British administration. This incursion became known as the Jameson Raid. The scheme ended in fiasco, but it seemed obvious to Kruger that it had at least the tacit approval of the Cape Colony government, and that his republic faced danger. He reacted by forming an alliance with Orange Free State.
Second Anglo-Boer War
The situation peaked in 1899 when the British demanded voting rights for the 60,000 foreign whites on the Witwatersrand. Until that point, Kruger's government had excluded all foreigners from the franchise. Kruger rejected the British demand and called for the withdrawal of British troops from the ZAR's borders. When the British refused, Kruger declared war. This Second Anglo-Boer War lasted longer than the first, and the British preparedness surpassed that of Majuba Hill. By June 1900, Pretoria, the last of the major Boer towns, had surrendered. Yet resistance by Boer bittereinders continued for two more years with guerilla-style battles, which the British met in turn with scorched earth tactics. By 1902 26,000 Boers had died of disease and neglect in concentration camps. On 31 May 1902 a superficial peace came with the signing of the Treaty of Vereeniging. Under its terms, the Boer republics acknowledged British sovereignty, while the British in turn committed themselves to reconstruction of the areas under their control.