The main functions of religion?

Regulates the behavior of people in society – the implementation of certain rules, actions prescribed by religion.
Raising a person
Relieves a difficult psychological state of a person – to feel relief, an influx of strength.
Relieves a person from loneliness.
It brings society together to solve a significant problem.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.