The Boer War was a conflict between the British Empire and the Boer Republics (the South African Republic and the Orange Free State) from 1899 to 1902. The discovery of diamond and gold mines in the Boer republics led to initial successful raids by the Boers against British outposts. However, the British responded with reinforcements, and despite the Boers resorting to guerrilla warfare, the conflict ended with the implementation of the British scorched-earth policy, which eventually brought the Boer leaders to the negotiation table.
The war began in 1899 when Boer irregulars and militia attacked British colonial outposts. Battles like Colenso, Magersfontein, and the sieges of Ladysmith, Kimberley, and Mafeking occurred in 1900. The British sent a large expeditionary army to South Africa under the leadership of Lord Roberts and Lord Kitchener, aiming to rescue the beleaguered cities and subdue the Boer Republics. Facing overwhelming force, the Boers decided to avoid pitched battles and allowed the British to take control.
With the annexation of South Africa and Namibia by the British Empire in 1900, Boer politicians fled or hid, and an early general election was called in Britain to capitalize on military successes. Some Boer fighters, known as the bittereinders, continued their resistance with a two-year campaign of hit-and-run raids and ambushes.