Maseru initially functioned as the state's administrative capital between 1869 and 1871, before administration of Basutoland was transferred to the Cape Colony. During their rule between 1871 and 1884, Basutoland was treated similarly to territories that had been forcefully annexed, much to the chagrin of the Basotho. This led to the Gun War in 1881 and the burning of many buildings in Maseru. In 1884, Basutoland was restored to its status as a Crown colony, and Maseru was again made capital. When Basutoland gained its independence and became the Kingdom of Lesotho in 1966, Maseru remained the country's capital.