In 800, Pope Leo III crowned Charlemagne the Emperor of the Romans, thereby extending Charlemagne's power and authority. Some historians believe that Charlemagne was surprised by the coronation and would not have gone into the church that day had he known the pope's plan.
Hope this helps <3