In what ways does religion serve the role of a social institution?

Religions have a complex and integrated set of norms.
Religious practices and beliefs are related to societal values.
Religions often meet several basic needs.
All of the above