Shazil Islam Ansari has been an MLA for three terms and is a member of the Ittehad-e-Millat Council political party. In the 2017 Uttar Pradesh Assembly election, he lost his seat to Bahoran Lal Maurya of the Bharatiya Janata Party. Also, he was a member of the Sixteenth Legislative Assembly of Uttar Pradesh in India.
Currently, Shazil Islam Ansari won the UP 2022 election from Bhojipura, representing the Samajwadi party. The election affidavit mentioned one criminal case registered against him, and he is 45 years old. His total declared assets are worth Rs 95,833,446 crore and Rs 2,887,189 lakh of financial liability.