The city of Bareilly was founded in 1537 by Basdeo, a Katehriya Rajput. The city is mentioned in the histories for the first time by Budayuni, who he writes that Husain Quli Khan was appointed the governor of Bareilly and Sambhal in 1568. The divisions and revenue of the district fixed by Todar Mal were recorded by Abul Fazl in 1596. In 1658, Bareilly was made the headquarters of the province of Budaun. The foundation of the 'modern' City of Bareilly was laid by Mukrand Rai in 1657.