In 1991, Bansal contested the Lok Sabha elections from the Chandigarh seat and won it. After losing the seat in 1996, he got elected from the same seat in 1999, 2004 and 2009. He held various posts in the Congress, including its Chief Whip (2004-06).