The Electoral Commission was established to resolve the dispute, and they ultimately awarded the presidency to Hayes, even though Tilden had won the popular vote. The decision of the Electoral Commission was controversial and sparked widespread outrage among Democrats. The Compromise of 1877 was reached, which resulted in the withdrawal of federal troops from the South and the end of Reconstruction.
The compromise also paved the way for the election of Rutherford B. Hayes as president. Hayes was a Republican and served as the 19th president of the United States from 1877 to 1881. During his presidency, he worked to rebuild the country after the Civil War and to reform the civil service.