Hoshiarpur's history stretches back to antiquity, with local legends claiming the city was part of the ancient kingdom of King Virata from the Indian epic, the *Mahabharata*, where the Pandavas spent their exile. Archaeological explorations in the district have also uncovered artifacts linking the region to the Indus Valley Civilization and subsequent ancient North Indian empires.
According to historical records, the modern city of Hoshiarpur was founded in the early 14th century. During the medieval period, the district experienced the rule of the Delhi Sultanate and later the Mughal Empire. In the late 18th and early 19th centuries, it fell under the domain of the Sikh Empire led by Maharaja Ranjit Singh, a period that brought relative stability and agricultural expansion to the region.
The British East India Company annexed Hoshiarpur in 1846 following the First Anglo-Sikh War, organizing it into a formal administrative district. During the British Raj, Hoshiarpur became a hotbed for the Indian independence movement. It contributed heavily to the Ghadar Party and the Babbar Akali movement, with local farmers and intellectuals taking a militant stance against colonial rule.
Following India's independence and the painful partition of 1947, Hoshiarpur saw a massive demographic shift as Muslim residents migrated to Pakistan and Hindu and Sikh refugees arrived from West Punjab. Today, it stands as a peaceful, progressive district that honors its freedom-fighting legacy.
