Answer
The answer to the question is Bahujan Samaj Party (BSP). Ansari won an MLA seat twice for the BSP, once in 2002 from the Meerut Cantonment constituency and again in 2012 from the Gangoh constituency. He was a prominent figure in the party and held various positions, including the General Secretary of the BSP's Uttar Pradesh unit.