Answer :
Galileo Galilei was the one that was put on trial for heresy by the church, even though he was right.
Galileo discovered that the Earth rotated around the Sun, rather than the common belief that everything moved around the Earth. However, the Catholic church taught that everything moved around the Earth, as they believed that was what God had said and intended. Since the Catholic church arguably held all of the power in the Middle Ages, he was put on trial.