Reconstruction aimed to rebuild the South after the Civil War and guarantee rights for freed slaves, but faced opposition. Radical Republicans sought to punish the South and protect freedmen, while Southerners and Moderate Republicans wanted reconciliation. The Reconstruction Amendments granted citizenship and voting rights to freedmen, but Southern states undermined these with Black Codes and later Jim Crow laws. Reconstruction ended in 1877 through a compromise that withdrew federal troops from the South in exchange for certifying the presidential election, ending Republican rule and protections for freedmen.