The history of Cape Colony from 1806 to 1870 spans the period of the history of Cape Colony during the Cape Frontier Wars, also called the Kaffir Wars, which lasted from 1811 to 1858. The wars were fought between the European colonists and the native Xhosa who rebelled against continuing European rule. The Cape Colony was the first European colony in South Africa, which was initially controlled by the Dutch but subsequently invaded and taken over by the British. After war broke out again, a British force was sent once more to the Cape. After a battle in January 1806 on the shores of Table Bay, the Dutch garrison of Cape Castle surrendered to the British under Sir David Baird, and in 1814, the colony was ceded outright by the Netherlands to the British crown. At that time, the colony extended to the mountains in front of the vast central plateau, then called "Bushmansland", and had an area of about 194,000 square kilometres and a population of some 60,000, of whom 27,000 were white, 17,000 free Khoikhoi (Hottentots), and the rest slaves. These slaves were mostly imported black people and Malays.