Prior to the 19th century, the area that is now Shimla was densely forested and populated by scattered indigenous communities. It is widely believed that the city was named after Goddess Shyamala Devi, an incarnation of the Hindu Goddess Kali, to whom a temple was dedicated in the lush forests of Jakhoo Hill.
The city's founding as a modern settlement dates to the end of the Anglo-Gurkha War in 1814–1816, when victorious British forces took control of the region. Seeking refuge from the sweltering heat of the Indian plains, British officers began establishing a sanatorium and summer retreat. The first semi-permanent structure was built in 1822 by Captain Charles Kennedy.
In 1864, Shimla was officially declared the summer capital of British India. For over seven decades, the entire imperial government—including the Viceroy, administrators, and clerks—migrated 1,200 miles from Calcutta (and later Delhi) to Shimla every summer. During this era, the city was the site of several historic events, including the drafting of the Simla Accord of 1914, which negotiated the boundaries of Tibet.
Following India's independence in 1947, Shimla initially served as the capital of Punjab. In 1966, following the reorganization of states, it was named the capital of the newly formed state of Himachal Pradesh. Another major historical milestone occurred here in 1972 with the signing of the Simla Agreement between India and Pakistan, setting the framework for relations following the Bangladesh Liberation War. Today, Shimla continues to evolve, balancing its heritage with the demands of rapid urbanization.

