27 In faith and in the teaching of morality, God Himself made the Church a partaker of His divine authority, and through His heavenly gift she cannot be deceived. She is therefore the greatest and most reliable teacher of mankind, and in her swells an inviolable right to teach them. Sustained by the truth received from her divine Founder, the Church has ever sought to fulfill holily the mission entrusted to her by God; unconquered by the difficulties on all sides surrounding her, she has never ceased to assert her liberty of teaching, and in this way the wretched superstition of paganism being dispelled, the wide world was renewed unto Christian wisdom. Now, reason itself clearly teaches that the truths of divine revelation and those of nature cannot really be opposed to one another, and that whatever is at variance with them must necessarily be false. Therefore, the divine teaching of the Church, so far from being an obstacle to the pursuit of learning and the progress of science, or in any way retarding the advance of civilization, in reality brings to them the sure guidance of shining light. And for the same reason it is of no small advantage for the perfecting of human liberty, since our Saviour Jesus Christ has said that by truth is man made free: "You shall know the truth, and the truth shall make you free."(9) Therefore, there is no reason why genuine liberty should grow indignant, or true science feel aggrieved, at having to bear the just and necessary restraint of laws by which, in the judgment of the Church and of reason itself, human teaching has to be controlled. 28, The Church, indeed - as facts have everywhere proved - looks chiefly and above all to the defense of the Christian faith, while careful at the same time to foster and promote every kind of human learning. For learning is in itself good, and praiseworthy, and desirable; and further, all erudition which is the outgrowth of sound reason, and in conformity with the truth of things, serves not a little to confirm what we believe on the authority of God. The Church, truly, to our great benefit, has carefully preserved the monuments of ancient wisdom; has opened everywhere homes of science, and has urged on intellectual progress by fostering most diligently the arts by which the culture of our age is so much advanced. Lastly, we must not forget that a vast field lies freely open to man's industry and genius, containing all those things which have no necessary connection with Christian faith and morals, or as to which the Church, exercising no authority, leaves the judgment of the learned free and unconstrained.
Source: Libertas (Vatican.va)