The results of the election remain among the most disputed ever, although there is no question that Samuel J. Tilden of New York outpolled Ohio's Rutherford B. Hayes in the popular vote. After a first count of votes, it was clear that Tilden had won 184 electoral votes to Hayes's 165, with 20 votes unresolved. These 20 electoral votes were in dispute in four states: in the case of Florida, Louisiana, and South Carolina, each party reported its candidate had won the state, while in Oregon one elector was declared illegal (as an elected or appointed official) and replaced. The question of who should have been awarded these electoral votes is the source of the continued controversy concerning the results of this election. An informal deal was struck to resolve the dispute: the Compromise of 1877, which awarded all 20 electoral votes to Hayes. In return for the Democrats' acquiescence in Hayes's election, the Republicans agreed to withdraw federal troops from the South, ending Reconstruction. The Compromise effectively ceded power in the Southern states to the Democratic Redeemers.This was the first presidential election in 20 years in which the Democratic candidate won a majority of the popular vote. This is also the only election in which a candidate for president received more than 50 percent of the popular vote but was not elected president by the Electoral College, and one of four elections in which the person receiving the largest proportion of the popular vote lost the electoral vote.