Theology and social structure