Haripur was founded by Hari Singh Nalwa, a Sikh commander of Ranjit Singh, in 1822 and became the headquarters of Hazara until 1848.[4] Hari Singh Nalwa had been appointed as the Nazim of Hazara after the first Nazim Amar Singh Majithia was killed by the local populace at Samundar Katha, Abbottabad.[5] The town was visited by Baron Hugel on 23 December 1835, and he found it humming with activity.[4]
The British East India Company conquered Haripur after the defeat of the Sikhs in the first Anglo-Sikh War in 1846. An obelisk marks the grave of Colonel Canara, a European officer of the Sikh Artillery, who fell in 1848 defending his guns single-handed against the insurgents under Chattar Singh.[4] The British divided Hazara region into three tehsils (administrative subdivisions): Mansehra, Abbottabad, and Haripur. Hazara formed part of Punjab province until 1901, when the British formed the buffer province of North West Frontier Province (NWFP) and Hazara was annexed into it. During the British rule, Haripur was a small town. Its population according to the 1901 census was 5,578 and the income and expenditure during the ten years ending 1902–3 averaged Rs. 17,800. In 1903–04 the income and expenditure were Rs. 19,100 and Rs. 20,000 respectively. The municipality was constituted in 1867.[4]
In 1851, the 4th (Hazara) Mountain Battery was raised at Haripur by local Hazarewal gunners, who were trained by James Abbott, a British officer and first deputy commissioner of Hazara, to defend the district. The Hazarewals embarked on many campaigns throughout the province.[6]
After the independence, Hazara district was elevated to the divisional status in 1976. After some time Haripur Tehsil was made district and Haripur became its headquarters.[7]
The weather in Haripur is characterized by relatively high temperatures and evenly distributed precipitation throughout the year. This climate type is found on the eastern sides of the continents between 20° and 35° N and S latitudes. The Köppen climate classification subtype for this climate is "Cfa" (humid subtropical climate).[22]