 Hampton's victory resulted from a deal between South Carolina Democratic leaders and the national Republican Party.In April 1877 Republican candidate Hayes received the hitherto contested votes of South Carolina electors and was finally declared the winner of the contested United States presidential race.In return, he ordered the withdrawal of Federal troops from South Carolina and Louisiana, ending the formal Reconstruction era.