Bareilly ( (listen)) is a city in Bareilly district in the Indian state of Uttar Pradesh. It is among the largest metropolises in Western Uttar Pradesh and is the centre of the Bareilly division as well as the historical region of Rohilkhand. The city lies in the Indo-Gangetic Plains, about 252 kilometres (157 mi) north west of the state capital, Lucknow, and 250 kilometres (155 mi) east of the national capital, New Delhi. With a population of 898,167 in 2011, it is the eighth most populous city in the state, seventeenth in northern India and fifty-fourth in India. It is located on the bank of Ramganga River and is the site of the Ramganga Barrage built for canal irrigation.
The earliest settlement in what is now Bareilly was established in 1537 by Jagat Singh Katehriya who named it 'Bans-Bareli' after his two sons Bansaldev and Bareldev. The town came under the rule of Mughals in 1569 and had become the capital of a local pargana by 1596.