Makhanda was founded as Grahamstown in 1812 after the Fourth Xhosa War as a military outpost by Lieutenant-Colonel John Graham as part of a campaign to secure the Eastern frontier of the Cape Colony. Initially Colonel Graham decided to establish his headquarters on the loan farm Noutoe, now known as Table Farm, but at the recommendation of Ensign Andries Stockenstrom it was moved to the homestead of the loan farm De Rietfontein, belonging to Lucas Meyer. Construction on the new headquarters, located on the site of the present Church Square, thus began in June 1812.