 In 17th Legislative Assembly of Uttar Pradesh (2017) elections, he elected Member of Legislative Assembly (MLA) from Lucknow Central (Assembly constituency) of Lucknow district in Uttar Pradesh.He defeated his nearest rival Samajwadi Party candidate Ravidas Mehrotra by a margin of 5,094 votes.After winning this high-profile seat, he appointed as Cabinet Minister of Law & Justice, Additional energy resources and Political pention in Government of Uttar Pradesh.