Pretoria was founded in 1855 by Marthinus Wessel Pretorius, a leader of the Voortrekkers, a group of Dutch settlers who had left the Cape Colony in search of greater freedom and autonomy. The city was named after Pretorius and became the capital of the South African Republic (ZAR), a Boer republic that existed from 1852 to 1902.
After the British defeated the ZAR in the Second Boer War, Pretoria became the administrative capital of the Transvaal Colony, a British colony that was later incorporated into the Union of South Africa in 1910. Pretoria continued to serve as the administrative capital of South Africa after the country became a republic in 1961.
However, the name "Pretoria" was associated with the apartheid era and the oppression of black South Africans. The African National Congress (ANC), which came to power in 1994 after the end of apartheid, decided to change the names of several cities and towns in South Africa, including Pretoria, in an effort to promote reconciliation and unity among the country's diverse population.
The name "Tshwane" was chosen for Pretoria in recognition of the city's historical significance as a meeting place for various African tribes and as a center of trade and commerce. The name is derived from the Tswana word "tshwane," which means "place of the baboons."
The name change from Pretoria to Tshwane was not without controversy. Some residents and organizations opposed the change, arguing that it would erase the city's history and cultural heritage. However, the South African government defended the name change as a necessary step towards building a more inclusive and unified nation.