The Khoikhoi–Dutch Wars were a series of conflicts that took place in the last half of the 17th century in what was known then as the Cape of Good Hope (today it refers to a smaller geographic spot), in the area of present-day Cape Town, South Africa, between Dutch settlers who came from the Netherlands and the local African people, the most prominent being the Khoikhoi, who had lived in that part of the world for millennia.
The arrival of the permanent settlements of the Dutch, under the Dutch East India Company, at the Cape of Good Hope in 1652 brought them into the land of the local people, such as the Khoikhoi (called Hottentots by the Dutch), the Khoisan, Griqua, Bushmen (also known as the San), and some Bantu peoples of South Africa. While the Dutch traded with the Khoikhoi, nevertheless serious disputes broke out over land ownership and livestock. This resulted in attacks and counter-attacks by both sides which were known as the Khoikhoi–Dutch Wars that ended in the eventual defeat of the Khoikhoi (who also succumbed to the diseases that the White settlers brought, such as measles and smallpox.) The First Khoikhoi-Dutch War took place in 1659, the second in 1673, the third 1674 - 1677.
In 1659 the first of a series of armed confrontations over the ownership of land took place between the Dutch settlers and a Khoikhoi clan led by Doman. The dispute was over cattle. In this first anti-colonial Khoikhoi-Dutch War the settlers sought refuge in the fort they had built. The Dutch then erected a series of fortified fences along the Liesbeeck River and an almond hedge in present-day Kirstenbosch National Botanical Garden to separate the Khoikhoi from their ancestral land and from the Dutch. The Khoikhoi were thus restricted in their movement and were forced to use designated gates when entering the enclosed and fortified areas.