You can’t just let it rest, can you? The church persecuted an old balding scientist that disagreed with them. Put him under house arrest. The man was a genius in his times, unlike the arrogant bully church who was,not infallible, but WRONG. I don’t care what you or your church thinks. I’m shaking the (proverbial)dust from my keyboard and leave you to your errors. There can be no good come from any further discussion.
Rather than repeat popular secular bosh, you could study the matter a bit more.
A good place to start would be with the idea that Galileo was punished for holding a theory that you seem to think the Church disagreed with. Specifically, heliocentric cosmology. The first to develop this theory, however was not Galileo but Copernicus decades earlier.
Copernicus was not eager to publish, for fear of criticism - religious and otherwise - but the Pope heard of it, and in 1536, Cardinal Nikolaus von Schönberg, Archbishop of Capua, wrote to Copernicus from Rome:
Some years ago word reached me concerning your proficiency, of which everybody constantly spoke. At that time I began to have a very high regard for you... For I had learned that you had not merely mastered the discoveries of the ancient astronomers uncommonly well but had also formulated a new cosmology. In it you maintain that the earth moves; that the sun occupies the lowest, and thus the central, place in the universe... Therefore with the utmost earnestness I entreat you, most learned sir, unless I inconvenience you, to communicate this discovery of yours to scholars, and at the earliest possible moment to send me your writings on the sphere of the universe together with the tables and whatever else you have that is relevant to this subject ...Copernicus subsequently did publish and dedicated his masterpiece to Pope Paul III.
Thus is exposed the lie that "The church persecuted an old balding scientist that disagreed with them."
The real history is much more involved than the farce accepted by materialists and atheists. If you look further, you can find more than secular myths in the story of science and the Church.