The city of Hapur, located in the Indian state of Uttar Pradesh, has a rich history dating back to the Middle Ages. Its development is closely linked to its geographical position in the fertile doab between the Ganges and Yamuna rivers and its proximity to Delhi, which for centuries made it an important trading and administrative hub.
The exact founding date of Hapur is a subject of debate; however, most sources agree that the city emerged around the 10th century. There are several versions regarding the origin of its name: according to one theory, the city was founded in 983 AD by a chief named Hardatta. Another version links the name to a Rajput clan, though it lacks convincing evidence. There is also a suggestion that the name comes from the word "hapar," meaning "fruit orchard." In Mughal-era documents such as the "Ain-i-Akbari" (16th century), the city is mentioned as "Hapurpar."
Hapur's growth was determined by several key factors. Its strategic location on trade routes connecting Delhi with other regions helped transform the city into a bustling commercial center. In the 18th century, the city was granted to the French general Pierre Cuillier-Perron, who was in the service of a Maratha ruler. During the British Raj, Hapur was part of the Meerut district and was known as an important trading center and the site of a cavalry depot. Earlier, during the Mughal era in 1670, the Jama Masjid was built here by order of Emperor Aurangzeb.
Since ancient times, Hapur has been known as a major market, and under Mughal rule and later during British India, it became a hub for agricultural trade. The main commodities in the local markets were grain, sugar, cotton, and timber, as well as brass and steel products. The city was surrounded by a wall with five gates whose names are still preserved today: Delhi, Meerut, Garhmukteshwar, Sikandra, and Kothi. The Hapur municipality was officially established in 1872, providing an impetus for further urban infrastructure development.