The 14th Amendment to the US Constitution,ratified in 1868,granted citizenship to all persons born or naturalized in the United States,including former slaves and guaranteed all citizens equal protection of the laws.
One of the three amendments passed during the Reconstruction era abolished slavery and established civil and legal rights for black Americans.
But many Northerners got very angry when the newly elected southern state legislatures,dominated by former Confederate leaders,enacted black codes ,which were repressive laws that that strictly regulated the behaviour of black citizens and effectively kept them dependent on white planters.