I wonder when it was that the religious establishment gained the reputation of hindering science rather than promoting it, it was, after all, the scientific leader for many centuries. Was it when Copernicus came up with his Heliocentric theory? However I believe that Pope Clement VII was interested in the theory rather than enraged. Perhaps it was Pope Paul V, who took a harder approach to Catholic diplomacy, and his cardinals who sought to condemn Galileo for following the Copernican position.
In short, then it must be at the dawn of the Renaissance that science left the bosum of the religious establishment and sought to make its own way in the world.

Before then too, I think in the Roman and Greek eras science was generally seperate from religion.