This guy built a whole philosophy of religion around this insight:
http://www.iliff.edu/research/archives/bernhardt/
It's been many years since I read his books but his argument was based around an empirical study of the religious rituals associated with the fishing practices of a group of people living on an island in the South Pacific. As the danger in fishing rose, the number of religious rituals associated with it rose. Bernhadrt argued that as science expanded humans would have less and less of a need for religion but it would never diminish to zero because people would never be able to abolish death.