With the defeat of the Confederacy in 1865, the Reconstruction Era began