In 1876 the Electoral College made Hayes president in one of the most contentious elections in U.S. history. He lost the popular vote to Democrat Samuel J. Tilden, but won an intensely disputed electoral-college vote after a Congressional commission awarded him 20 contested electoral votes. In accordance with the custom of the time, the campaign was conducted by surrogates, with Hayes and Tilden remaining in their respective hometowns. The poor economic conditions made the party in power unpopular and made Hayes suspect he would lose the election. Both candidates concentrated on the swing states of New York and Indiana, as well as the three southern states—Louisiana, South Carolina, and Florida—where Reconstruction Republican governments still barely ruled, amid recurring political violence, including widespread efforts to suppress freedman voting. The Republicans emphasized the danger of letting Democrats run the nation so soon after southern Democrats had provoked the Civil War and, to a lesser extent, the danger a Democratic administration would pose to the recently won civil rights of southern blacks.