The above answer misconstrues the opinion of Enlightenment thinkers. They were not opposed to religion per se, in fact, Voltaire, the famous Enlightenment thinker once commented:
If God did not exist, it would be necessary to invent him. I want my attorney, my tailor, my servants, even my wife to believe in God, and I think that I shall be robbed and cuckolded less often.
Enlightenment thinkers had no problem with the idea of God; however they tended to believe that God was an impersonal force who set the universe in motion and did not interfere with its operation. This belief was called Deism. Thomas Jefferson was also a Deist: note his use of the term "Nature and Nature's God" in the Declaration of Independence.
The questioner correctly asks about Enlightenment opposition to the Catholic Church, not Christianity or religion--a point which the first answer overlooks. Their problem with the Church was the many abuses which had been committed in the name of religion. Voltaire often commented in his writings on the Church, Ecrasez l'infame! ("Crush the horrible thing!") Of priests, he said, "they sing, they eat, they digest." He also made a satirical comment about Chinese people in an obvious reference to the Catholic Church:
They have an admirable religion free from superstition and the rage to prosecute.
Only one Enlightenment thinker, Denis Diderot, was a professed Athiest. All others considered the idea of God quite rational; they simply believed that God had created a rational universe.