An excerpt from the pastoral constitution on the Church in the modern world from the Second Vatican Council.
Summary: Genuine science will never conflict with faith, but it must have reference to its Creator (§ 36). Without the purifying light of Christ, scientific progress will be transformed into an instrument of sin, even to the point of destroying mankind by our own deranged pride (§ 37).
36. Now many of our contemporaries seem to fear that a closer bond between human activity and religion will work against the independence of men, of societies, or of the sciences.
If by the autonomy of earthly affairs we mean that created things and societies themselves enjoy their own laws and values which must be gradually deciphered, put to use, and regulated by men, then it is entirely right to demand that autonomy. Such is not merely required by modern man, but harmonizes also with the will of the Creator. For by the very circumstance of their having been created, all things are endowed with their own stability, truth, goodness, proper laws and order. Man must respect these as he isolates them by the appropriate methods of the individual sciences or arts. Therefore if methodical investigation within every branch of learning is carried out in a genuinely scientific manner and in accord with moral norms, it never truly conflicts with faith, for earthly matters and the concerns of faith derive from the same God.  Indeed whoever labors to penetrate the secrets of reality with a humble and steady mind, even though he is unaware of the fact, is nevertheless being led by the hand of God, who holds all things in existence, and gives them their identity. Consequently, we cannot but deplore certain habits of mind, which are sometimes found too among Christians, which do not sufficiently attend to the rightful independence of science and which, from the arguments and controversies they spark, lead many minds to conclude that faith and science are mutually opposed. 
But if the expression, the independence of temporal affairs, is taken to mean that created things do not depend on God, and that man can use them without any reference to their Creator, anyone who acknowledges God will see how false such a meaning is. For without the Creator the creature would disappear. For their part, however, all believers of whatever religion always hear His revealing voice in the discourse of creatures. When God is forgotten, however, the creature itself grows unintelligible.
37. Sacred Scripture teaches the human family what the experience of the ages confirms: that while human progress is a great advantage to man, it brings with it a strong temptation. For when the order of values is jumbled and bad is mixed with the good, individuals and groups pay heed solely to their own interests, and not to those of others. Thus it happens that the world ceases to be a place of true brotherhood. In our own day, the magnified power of humanity threatens to destroy the race itself.
For a monumental struggle against the powers of darkness pervades the whole history of man. The battle was joined from the very origins of the world and will continue until the last day, as the Lord has attested.  Caught in this conflict, man is obliged to wrestle constantly if he is to cling to what is good, nor can he achieve his own integrity without great efforts and the help of God’s grace.
That is why Christ’s Church, trusting in the design of the Creator, acknowledges that human progress can serve man’s true happiness, yet she cannot help echoing the Apostle’s warning: “Be not conformed to this world” (Rom. 12:2). Here by the world is meant that spirit of vanity and malice which transforms into an instrument of sin those human energies intended for the service of God and man.
Hence if anyone wants to know how this unhappy situation can be overcome, Christians will tell him that all human activity, constantly imperiled by man’s pride and deranged self-love, must be purified and perfected by the power of Christ’s cross and resurrection. For redeemed by Christ and made a new creature in the Holy Spirit, man is able to love the things themselves created by God, and ought to do so. He can receive them from God and respect and reverence them as flowing constantly from the hand of God. Grateful to his Benefactor for these creatures, using and enjoying them in detachment and liberty of spirit, man is led forward into a true possession of them, as having nothing, yet possessing all things.  “All are yours, and you are Christ’s, and Christ is God’s” (1 Cor. 3:22-23).
- Cf. First Vatican Council, Dogmatic Constitution on the Catholic Faith, Chapter III: Denz. 1785-1186 (3004-3005).
- Cf. Msgr. Pio Paschini, Vita e opere di Galileo Galilei, 2 volumes, Vatican Press (1964).
- Cf. Matt. 24:13; 13:24-30 and 36-43.
- Cf. 2 Cor. 6:10.