The formation of the Cape Police followed a four-year period of warfare in southern Africa, which included the 9th Frontier War (1877–78), the Northern Border campaigns (1878–79), the Morosi campaign in Basutoland (1879), the Basutoland Gun War (1880–81) and the Transkei (a.k.a. 'Mpondomisi') Campaign (1880–81).