The British gave independence to South Africa, 8 years after the Boer war ended.
Explanation
It was on May 31, 1910. But it was only by 1931, all British power was completely removed.
After the Boer war, the Union of South Africa was born.
The union included former colonies of the Cape and Natal.
The union became completely free by 1931 when the British were forced to abandon. But they recognized the British queen as monarch.
It was by 1961, they became a republic.