Before the American Civil War, Southern ministers used scripture to defend slavery from the pulpit. This is an example of the use of religion to legitimate social inequalities.
When resources in a society are distributed unevenly, there is social inequality typically through norms of allocation, the gender and the social definition of every person.