I think that, as long as there are questions we do not have answers for, people will fill that gap with explanations of their own. Non-religious people are becoming a larger percentage of the population in some countries, and I expect this to continue for awhile, but I also think it will reverse at some point. There are a lot of things we don't know and have not figured out, and as long as those gaps exist, our need to be certain will guide us towards religious belief.
Science has, in my mind, made a certain type of god seem illogical. But that type --the all powerful interventionist who wishes the best for us-- is the one that we'd all prefer to be real, so it persists (even if the examples available don't quite fit the description, if you dig a bit deeper). The more likely type is one that probably doesn't care that we exist, aside from our use as a test case for future universes. That isn't very comforting.