In 2002, after Gephardt resigned as minority leader to seek the Democratic nomination in the 2004 presidential election, Pelosi was elected to replace him, becoming the first woman to lead a major party in the House.