How did the Pope come to be the ruler of Rome and the land the Papal States comprised, as opposed to just being a religious figurehead?

by torontogrady
historicalcylon