Complex sentence: The Avars' power was destroyed between 791 and 795 by Charlemagne, who occupied Pannonia and attached it to his empire.
Split into simpler sentences: The Avars' power was destroyed between 791 and 795 by Charlemagne. He occupied Pannonia and attached it to his empire.