(1779-1803): After European invasion of the present day Western Cape, South Africa region, colonialist's frontiersmen in the 18th century started encroaching the land farther inland present-day South African region, encountering more of the indigenous population, conflict of land and cattle grew sparking the first war that set to drive Xhosa people out of Zuurveld by 1781. The second war involved a larger Xhosa territory between the Great Fish River and the Sundays River, the Gqunukhwebe clans of the Xhosa started to penetrate back into the Zuurveld and colonists under Barend Lindeque, allied themselves with Ndlambe, a regent of the Western Xhosas, to repel the Gqunukhwebe. The second war concluded when farms were abandoned due to panic in 1793. In 1799 the third war began with the Xhosa rebellion – discontented Khoekhoe revolted and joined with the Xhosa in the Zuurveld, and started retaking land through farms occupied by colonialist, reaching Oudtshoorn by July 1799. The colonial government made peace with the Xhosa and Khoe in Zuurveld. In 1801, Graaff-Reinet rebellion started forcing more Khoekhoe desertions and farm abandonment. The commandos could not achieve any result, so in February 1803 a peace was arranged with the Xhosas and Khoekhoes.