In 1852 to 1853, as Governor of the Cape of Good Hope, he granted the first constitution to the colony, ending the 8th Cape Frontier War by defeating the Basutos.