With the compromise, the Republicans had quietly given up their fight for racial equality and blacks' rights in the south. In 1877, Hayes withdrew the last federal troops from the south, and the bayonet-backed Republican governments collapsed, thereby ending Reconstruction.