The article discusses the specific features of religiosity and secularism, the function of religion as a means of ensuring spiritual and moral harmony, and the ideological function of religion in ensuring the harmony of interests in the system of relations between religion, society, and the state, as well as its ability to organize and unite large social groups.