Learn about this topic in these articles:

South African War

...Mafeking (Mafikeng), and Kimberley. Particularly of note among Boer victories in this period are those that occurred at Magersfontein, Colesberg, and Stormberg, during what became known as
Black Week (Dec. 10–15, 1899).

...with the terrain, support from the Afrikaner populace, and the poor leadership and dated tactics of the British command. Although often styled a “white man’s war,” both sides used blacks extensively as labour, and at least 10,000 blacks fought for the British.