Basutoland was in southern Africa. The mountainous and largely arid land that came to be Basutoland was populated by the San until the end of the 16th century. From then Bantu-speaking tribes began to migrate into the area, gradually forming various groups including the Basotho.In the Nineteenth Century, the Basutoland area became particularly populated as tribes sought to avoid the rampant Zulu in the area.
From around 1820, a local chief, Moshoeshoe, consolidated the scattered people to resist invaders and became King Moshoeshoe I in the 1830s. He established a fortress capital at the inaccessible Thaba Bosiu in the tableland north of the Maloti in 1824.
During Moshoeshoe's reign there were a series of clashes with the Boers of the Orange Free State, the British and with other native tribes. Despite a certain amount of success in battle and Moshoeshoe's skillful diplomacy, the kingdom lost considerable territory. A treaty had been signed with the Boer from Griqualand in 1843 and an agreement was made with the British in 1853 following a minor war. However, the disputes with the Boer over land were revived in 1858 and more seriously in 1865. Mainly due to superior armament, the Boers had a number of military successes, killing possibly 1500 Basotho soldiers, and annexed an expanse of arable land which they were able to retain following a treaty at Thaba Bosiu. In order to protect his people, Moshoeshoe appealed to the British for assistance, and in March 1868 the land was placed under British protection and the Boers were ordered to leave. A treaty was signed at Aliwal in 1869 between the British and the Boers defining the boundaries of the protectorate, the arable land west of the Caledon River remained in Boer hands and is referred to as the Lost or Conquered Territory. Moshoeshoe died in 1870.
In 1871 the protectorate was annexed by the Cape Colony. The Basotho resisted the British and in 1879 a southern chief, Moirosi, rose in revolt. The rising was crushed and Moirosi was killed in the fighting. The Basotho then began to fight amongst themselves over the division of Moirosi's lands. The British extended the Cape Peace Preservation Act of 1878 to cover Basutoland and attempted to disarm the natives. Much of the colony rose in revolt in the Gun War (1880-1881), incurring significant casualties upon colonial British forces sent to subdue it. An 1881 peace treaty failed to quell sporadic fighting.
Cape Town's inability to control the territory led to its return to crown control in 1884 as the Territory of Basutoland. The colony was bound by the Orange River Colony, Natal Colony, and Cape Colony. It was divided into seven administrative disricts - Berea, Leribe, Maseru, Mohales Hock, Mafeteng, Qacha's Nek and Quthing. The colony was ruled by the British Resident Commissioner, who worked through the Pitso (national assembly) of hereditary native chiefs under one paramount chief. Each chief ruled a ward within the territory. The first paramount chief was Lerothodi, the son of Moshoeshoe. During the Second Boer War the colony remained neutral.
When the Union of South Africa was founded in 1910 the colony was still controlled by the British and moves were made to transfer it to the Union. However the people of Basutoland opposed this and when the South African Nationalist party put its apartheid policies into place the possibility of annexation was halted. In 1959, a new constitution gave Basutoland its first elected legislature. This was followed in April 1965 with a general election. It became independent as Lesotho on October 4th 1966.