They were ratified during the Reconstruction in order to establish political equity for all Americans.
The 13th, 14th, and 15th Amendments are collectively referred to as the Reconstruction or Civil War Amendments as they were intended to ensure equality for recently emancipated slaves.