Galileo was greatly influenced by the Polish astronomer Nicholas Copernicus, who not only posited that the Earth revolves around the sun but that it makes a complete turn on its axis every 24 hours. The Catholic Church, however, considered the theory heresy, and Galileo was convicted by the Inquisition in 1633 and remained under house arrest for the rest of his life.
Nearly two centuries later, however, the weight of scientific evidence was so overwhelming that the College of Cardinals finally reversed itself and allowed the teaching of heliocentrism. Still, it would take another 170 years, until 1992, for a pope -- in this case, John Paul II -- to officially concede that, yes, the Earth isn't stationary in the heavens. Eight years after that, in 2000, John Paul apologized for the way the Catholic Church treated Galileo.
http://www.wired.com/science/discoveries/news/2008/09/dayintech_0911