In the mid seventeenth century, Thomas Hobbes identified that science does not undermine theology. Rather, science tends towards (problematic) natural theology.
Curiosity, or love of the knowledge of causes, draws a man from consultation of the effect, to seek the cause; and again, the cause of that cause; till of necessity he must come to this thought at last, that there is some cause, whereof there is no former cause, but is eternall; which is it men call God. So that it is impossible to make any profound enquiry into naturall causes, without being enclined thereby to believe there is one God Eternall; though they cannot have any Idea of him in their mind, answerable to his nature.
From Leviathon, Chapter XI.