It was religion that justified slavery. The Confederates for example would quote bible to defend the practise and to fight a civil war over it. The bible condones slavery throughout, old and new testaments.