 In 12th Lok Sabha (1998) elections, the Samajwadi Party made him its candidate from Jaunpur (Lok sabha constituency) in the middle of his fourth Legislative term.He contest against contemporaneous MP BJP's Raj Keshar Singh.He defeated Raj Keshar Singh by a margin of 13,426 (1.92℅) votes and was elected MP of Jaunpur.