Religions and similar irrational superstitions will persist for as along as there are people who cannot, will not, or are unable to think for themselves, and who prefer to believe what they want rather than check for what is real.
The church once dominated the world - that was known as the dark ages. We now have a more enlightened world. In most parts of Europe, especially the UK, the Church is rapidly loosing its relevance and non-belief is very steadily on the increase. In the UK the archbishop of a few years ago was reported in a daily newspaper that he now considers the UK an atheist country. In some parts of Europe politicians would NOT be elected if they openly stated they were religious. The USA seems to be a special case where Christianity is still rampant, perhaps because the country is still young and has yet to gain the maturity that most of Europe is now experiencing.
I suspect as science and technology continue their geometrically increasing pace that we will see some key developments that will likely have a bearing on religious beliefs, such as –
1. Ever increasing longevity and quality of health in old age and probable breakthroughs in anti-aging research. Religions tend to thrive on suffering and death and if these things are less frequent or become “not inevitable” then religions will lose much of their message and basis.
2. The arrival of artificial intelligence, artificial self-awareness, and AI more advanced than humans. The church portrays man as the ultimate product of a beneficial creator. If we create something more advanced then where does that leave religion? If such developments do result in characteristics that religions associate with a soul but clearly we would not have created souls then the whole question of the soul concept would be in serious doubt.
At a social level if religious inspired terrorism continues its momentum and especially if a nuclear device is detonated as part of that then surely people will become frustrated with the irrational nature and destructive nature of religious indoctrination.
An increase in independent high quality public education around the world will also likely see the biggest impact on the demise of religions. As people become better informed and better educated then religions surely cannot survive in that light, as all the statistics over the past century have indicated. Note that the USA does not have a good record on such education standards.