After Foley was unseated in the Republican landslide of 1994 that gave the Republicans a 52-seat majority, Gephardt became the leader of the House Democrats, as minority leader, initially opposite Newt Gingrich and then, from 1999 onward, Dennis Hastert. When Gingrich faced a coup within his own party in 1997, Gephardt could have become Speaker if there had been a floor vote and he gained the support of Republican members dissatisfied with Gingrich, but Gingrich refused to resign and no vote occurred. In the 1996, 1998, and 2000 elections, Gephardt led the Democrats to gains in the House, although they did not retake the majority until 2006, after Gephardt had left Congress.