Einstein distinguished three styles which are usually intermixed in actual religion. The first is motivated by fear and poor understanding of causality, and hence invents supernatural beings. The second is social and moral, motivated by desire for love and support. Einstein noted that both have an anthropomorphic concept of God.
The third style, which Einstein deemed most mature, is motivated by a deep sense of awe and mystery. He said, “The individual feels […] the sublimity and marvelous order which reveal themselves in nature […] and he wants to experience the universe as a single significant whole.” Einstein saw science as an antagonist of the first two styles of religion, but as a partner of the third style.