Mr Arya polled 1, 35,647 against 1, 23,213 polled by Mr Bharatiya. Maharaj Singh of Samajwadi Party was placed third with 84,655 votes, while Congress candidate Shyam Jarari placed fourth with 29,116 votes.
Compared to the 2006 mayoral elections, the BJP got nearly as many votes as last time, while the BSP increased its tally from 1.10 lakh votes to 1,23,213 votes and the SP from 63,000 votes to 84,655.
Congress tally dropped from 75,000 to 29,116.
However, in the 90 member Corporation, the BJP again failed to get a majority, finishing with 36 seats.
The only other party putting up candidates, the Congress, won just two seats, while the 57 remaining seats were captured by independents with either BSP or SP support.
Laxmi Rathore won in Shamsabad, while Islam won in Fathehpur Sikri.
For election to Nagar Panchayats, the following were the winners - Kiraoli - Jagdish Singh, Pinahat - Manoj Kumar, Jagner - Vijayrani, Kheragarh - Anil Kumar, Fatehabad - Shailesh Yadav, Soamibagh - Sanjay Kapoor and Dayalbagh - Gurpyari Mehta (unopposed).
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.