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 the Indian states of Punjab and Haryana).