Manchin is a moderate Democrat, a fact which has allowed him to win elections in West Virginia even as the state shifted from one of the most Democratic in the country to one of the most Republican. He won the 2004 gubernatorial election by a large margin and was re-elected with an even larger margin in 2008; in both years, Republican presidential candidates captured the majority of West Virginia's votes. Manchin won the special election in 2010 to fill the Senate seat vacated by Robert Byrd when he died in office. Manchin was elected to a full term in 2012 with 60 percent of the vote, and was later reelected in 2018 by a much narrower margin. Manchin became the state's senior U. S. Senator when Jay Rockefeller retired in 2015.