The last of the Boers surrendered in May 1902 and the war ended with the Treaty of Vereeniging in the same month. 22,000 British troops had died and over 25,000 Boer civilians. The treaty ended the existence of the Transvaal and the Orange Free State as Boer republics and placed them within the British Empire. But the Boers were given £3m in compensation and were promised self-government in time (the Union of South Africa was established in 1910).
The Boers referred to the two wars as the Freedom Wars.