Cape Town capital of British Cape Colony
British period
With the Dutch Republic being transformed into Revolutionary France's vassal Batavian Republic, Great Britain moved to take control of Dutch colonies, including the colonial possessions of the VOC. 
Britain captured Cape Town in 1795, but it was returned to the Dutch by treaty in 1803. British forces occupied the Cape again in 1806 following the Battle of Blaauwberg when the successor state to the Batavian Republic, the Kingdom of Holland, allied with France during the Napoleonic Wars. 
In the Anglo-Dutch Treaty of 1814, Cape Town was permanently ceded to the United Kingdom. It became the capital of the newly formed Cape Colony, whose territory expanded very substantially through the 1800s. With expansion came calls for greater independence from the UK, with the Cape attaining its own parliament (1854) and a locally accountable Prime Minister (1872). Suffrage was established according to the non-racial Cape Qualified Franchise.During the 1850s and 1860s, additional plant species were introduced from Australia by the British authorities. Notably rooikrans was introduced to stabilise the sand of the Cape Flats to allow for a road connecting the peninsula with the rest of the African continent and eucalyptus was used to drain marshes.In 1859 the first railway line was built by the Cape Government Railways and a system of railways rapidly expanded in the 1870s. The discovery of diamonds in Griqualand West in 1867, and the Witwatersrand Gold Rush in 1886, prompted a flood of immigration into South Africa. In 1895 the city's first public power station, the Graaff Electric Lighting Works, was opened.
Conflicts between the Boer republics in the interior and the British colonial government resulted in the Second Boer War of 1899–1902. Britain's victory in this war led to the formation of a united South Africa. From 1891 to 1901, the city's population more than doubled from 67,000 to 171,000.As the 19th century came to an end, the economic and political dominance of Cape Town in the Southern Africa region during the 19th century started to gave way to the dominance of Johannesburg and Pretoria in the 20th century.
seat of government administrative center primary city headquarters political hub