In medieval European society, was the king or the pope the most powerful figure? The King, because the Church had no control over armies.

The Pope, because the Church was wealthier than most kings.

Neither, because the power dynamic shifted between the Church and the kings.

Neither, because the military was more powerful than both kings and popes