In the 2000 presidential election, George W. Bush won the election by winning the majority of electoral votes, even though Al Gore received more popular votes. In the United States, the president is not elected by the popular vote, but rather by the Electoral College. Each state is allocated a certain number of electors based on its population, and the candidate who wins the majority of votes in a state usually wins all of that state's electoral votes. In the 2000 election, Al Gore won more popular votes nationwide, but George W. Bush won more electoral votes by winning key swing states such as Florida. The election result was ultimately decided by the Supreme Court, which ruled in favor of George W. Bush in the case of Bush v. Gore, effectively handing him the presidency.