The modern City of Bareilly was founded by Mukrand Rai in 1657. Later it became the capital of the Rohilkhand region before getting handed over to Nawab Vazir of Awadh and then to the East India Company, becoming an integral part of India.
Ancient History of Bareilly, Uttar Pradesh
Historically, the region was the capital of the ancient kingdom of Panchala. The Panchalas occupied the country to the east of the Kurus, between the upper Himalayas and the river Ganges. The country was divided into Uttara-Panchala and Dakshina-Panchala. The northern Panchala had its capital at Ahichatra, (also known as Adhichhatra and Chhatravati, near present-day Aonla, Uttar Pradesh|Aonla] tehsil of Bareilly district, while southern Panchala had it capital at Kampilya or Kampil in Farrukhabad district. The famous city of Kanyakubja or Kannauj was situated in the kingdom of Panchala.