religious belief is a coping mechanism. it helps people cope with uncertainty and the unknown, creating a community. It has been in decline because there is much less unknown now that before, although it will probably always exist; since we will never know what happens after death, there will always be some unknown
Organized religion like Catholicism is a instrument of power, and it has definitely enabled genocide