The Catholic Church taught geocentric ideas, and were opposed to heliocentric ideas.
Galileo Galilei was famously the scientist who discovered that our solar system is heliocentric, and he was jailed for his “heretics”. It was Nicolaus Copernicus that theorized that the planets revolved around the sun, and he was eventually proven right by future scientists.