section_path: Reign as emperor/Governing the empire
section_name: Governing the empire
paragraph_text: Governing the empire
  
  Charlemagne left Italy in the summer of 801 after adjudicating several ecclesiastical disputes in Rome and experiencing an earthquake in Spoleto. He never returned to the city. Continuing trends and a ruling style established in the 790s, Charlemagne's reign from 801 onward is a "distinct phase" characterised by more sedentary rule from Aachen. Although conflict continued until the end of his reign, the relative peace of the imperial period allowed for attention on internal governance. The Franks continued to wage war, though these wars were defending and securing the empire's frontiers, and Charlemagne rarely led armies personally. A significant expansion of the Spanish March was achieved with a series of campaigns by Louis against the Emirate of Cordoba, culminating in the 801 capture of Barcelona.
  
  The 802 Capitulare missorum generale was an expansive piece of legislation, with provisions governing the conduct of royal officials and requiring that all free men take an oath of loyalty to Charlemagne. The capitulary reformed the institution of the missi dominici, officials who would now be assigned in pairs (a cleric and a lay aristocrat) to administer justice and oversee governance in defined territories. The emperor also ordered the revision of the Lombard and Frankish legal codes.
  
  In addition to the missi, Charlemagne also ruled parts of the empire with his sons as sub-kings. Although Pepin and Louis had some authority as kings in Italy and Aquitaine, Charlemagne had the ultimate authority and directly intervened. Charles, their elder brother, had been given lands in Neustria in 789 or 790 and made a king in 800.
  
  The 806 charter Divisio Regnorum (Division of the Realm) set the terms of Charlemagne's succession. Charles, as his eldest son in good favour, was given the largest share of the inheritance: rule of Francia, Saxony, Nordgau, and parts of Alemannia. The two younger sons were confirmed in their kingdoms and gained additional territories; most of Bavaria and Alemmannia was given to Pepin, and Provence, Septimania, and parts of Burgundy were given to Louis. Charlemagne did not address the inheritance of the imperial title. The Divisio also provided that if any of the brothers predeceased Charlemagne, their sons would inherit their share; peace was urged among his descendants.