Many fantasy writers use religion as a theme or a background for example
Heinlein - Stranger in a strange land
Zelazny - Lords of Light
but my favourite has to be
A Canticle for Leibowitz by Walter M Miller
Read the Wiki then read the book...
[EDIT] A Canticle For Leibowitz: Book One: The Saint Leibowtiz Series