Similar to Chandigarh , this town , which is now capital of Himachal Pradesh , was built back in the early years of the 19th century when the British colonial settlers were desperately searching for refuge from the heat of the plains .
The town was built in the 17th century .