@Ali phil,
Religion is virtually ubiquitous in human history, society and culture. Many thought that the enlightenment and the age of reason and science would/should eradicate religion but it has not happened. Religion must serve some human purpose, fullfill some human need, and be about something more than science,logic or reason. I think religion serves an existential purpose in attempting to answer the most basic questions of a self aware, mortal intelligence (why am I here, what happens after death, what is the meaning and purpose of it all?). I think religion attempts to give us a higher purpose, higher meaning more significance and infuse our existence with transcendent values (aesthetic and ethical).
Yes organized religions can become dogmatic and dangerous. Religion itself however fullfills the most basic of human needs and we all have some form of religion in our lives. For we all have assumptions about the meaning and purpose of it all even if your answer is there is no transcendent meaning or purpose. For many, religion supplies motivation and meaning to existence which they do not get from materiaism, science, logic, reason or atheism.
There are things which transcend us and our understandings. There is still mystery, magic, miracles and enchantment in the world; or at least some of us still hope and believe. Faith is hope and trust not certain knowledge.
This is not an excuse for religion to ignore the knowledge imparted to us by science only a plea for humility and acknowledgement of so much that we still do not "know". This is also not an excuse for the many acts of cruelty and violence committed in the name of religion.
Religion however serves a human purpose and fulfills a human need for which there is, as of yet, no adequate substitute.