Shimla was annexed by the British in 1819 after the Gurkha War. At that time it was known for the temple of Hindu Goddess Shyamala Devi. The Scottish civil servant Charles Pratt Kennedy built the first British summer home in the town in 1822.Shimla, or Simla as it was called until recently, caught the eye of Lord William Bentinck, the Governor-General of Bengal from 1828 (later of India, when the title was created in 1833) to 1835. In a letter to Colonel Churchill in 1832 he wrote One of his successors, Sir John Lawrence, Viceroy of India 1864–1869, decided to take the trouble of moving the administration twice a year between Calcutta and a separate centre over 1,000 miles away, despite the fact that it was difficult to reach. Lord Lytton, Viceroy 1876 -1880 made efforts to plan the town from 1876, when he first stayed in a rented house, but began plans for a Vice regal Lodge, later built on Observatory Hill. A fire cleared much of the area where the native Indian population lived (the “Upper Bazaar”), and the planning of the eastern end to become the centre of the European town forced these to live in the Middle and Lower Bazaars on the lower terraces descending the steep slopes from the Ridge. The Upper Bazaar was cleared for a Town Hall, with many facilities such as library and theatre, as well as offices – for police and military volunteers as well as municipal administration. The Kalka-Shimla railway line, constructed in 1906, added to Shimla’s accessibility and popularity. The railway route from Kalka to Shimla, with more than 806 Bridges and 103 tunnels, was touted as an engineering feat and came to be known as the “British Jewel of the Orient”.

In 2008, it became part of the UNESCO World Heritage Site, Mountain railways of India. Not only that, there was a significant Muslim population in the region before the partition of British India. In addition, Shimla was the capital of the undivided state of Punjab in 1871, and remained so until the construction of the new city of Chandigarh (the present-day capital of Punjab). Upon the formation of the state of Himachal Pradesh in 1971, Shimla was named its capital. Shimla is the capital city of Himachal Pradesh. In 1864, Shimla was declared the summer capital of the British Raj in India. A popular tourist destination, Shimla is often referred to as the “Queen of Hills” (a term coined by the British). Located in the north-west Himalayas at an average altitude of 2,205metres (7,234 ft), the city of Shimla, draped in forests of pine, rhododendron, and oak, experiences pleasant summers and cold, snowy winters. The city is famous for its buildings styled in tudorbethan and neo-gothic architecture dating from the colonial era. Shimla is connected to the city of Kalka by one of the longest narrow gauge railway routes still operating in India, the Kalka-Shimla Railway. Shimla is approximately 126 kms from Chandigarh, the nearest major city, and 378kms from New Delhi, the national capital. The city is named after the goddess Shyamala Devi, an incarnation of the Hindu Goddess Kali.