He entered the Assembly by winning the Sikandra by-election in December 2017, and was re-elected in 2022.
He joined the Yogi Adityanath government on 21 August 2019 as Minister of State for Science and Technology, Electronics and IT, and spoke at technology and health-tech events on AI in governance. In the expansion of 10 May 2026 he was promoted to Minister of State (Independent Charge) and given Food Safety and Drug Administration.