In 1864, Shimla was made the summer capital of British India. After Indian independence, the city became the capital of Punjab and was later named the capital of Himachal Pradesh. It is the main commercial, cultural and educational centre of Himachal Pradesh.