The agreement that finally resolved the 1876 election and officially ended Reconstruction. In exchange for the Republican candidate, Rutherford B. Hayes, winning the presidency, Hayes agreed to withdraw the last of the federal troops from the former Confederate states. This deal effectively completed the southern return to white-only, Democratic-dominated electoral parties.