Something I don't understand about Catholicism.

I don't understand the Catholic belief that the Pope is the representative of God on Earth, when God is supposed to be perfect and there have been corrupt Popes back in the day. Plus, I don't understand why a person would be uplifted to such rank. I'm not saying Catholicism is bad, but I don't understand this belief. What do you guys, especially the Catholics, think?