The correct answer is: Republican Rutherford B. Hayes was elected President in return for withdrawing federal troops from the South.
This compromise was part of the deal that effectively ended Reconstruction by allowing Hayes to assume the presidency while agreeing to remove federal troops from the South, which led to the end of federal intervention and allowed Southern states to regain local control.