became hereditary local dukes. In 877 Boso of Provence, brother-in-law of Charles the Bald, crowned himself as the king of Burgundy and Provence. His son Louis the Blind was king of Provence from 890 and Emperor between 901 and 905. Rudolph II of Burgundy established the Kingdom of Burgundy in 933. Charles the Simple After the death of East Francia's last Carolingian king Louis the Child, Lotharingia switched allegiance to the king of West Francia, Charles the Simple. After 911 the Duchy of Swabia extended westwards and added lands of Alsace. Baldwin II of Flanders became increasingly powerful after the Odo's death in 898, gaining Boulogne and Ternois from Charles. The territory over which the king exercised actual control shrank considerably, and was reduced to lands between Normandy and river Loire. The royal court usually stayed in Rheims or Laon. Norsemen began settling in Normandy, and from 919 Magyars invaded repeatedly. In the absence of strong royal power, invaders were engaged and defeated by local nobles, like Richard of Burgundy and Robert of Neustria, who defeated Viking leader Rollo in 911 at Chartres. The Norman threat was eventually ended, with the last Danegeld paid in 924 and 926. Both nobles became increasingly opposed to Charles, and in 922 deposed him and elected Robert I as the new king. After Robert's death in 923 nobles elected Rudolf as king, and kept Charles imprisoned until his death in 929. After the rule of king Charles the Simple, local dukes began issuing their own currency. Rudolf King Rudolf was supported by his brother Hugh the Black and son of Robert I, Hugh the Great. Dukes of Normandy refused to recognise Rudolf until 933. The King also had to move with his army against the southern nobles to receive their homage and loyalty, however, the count of Barcelona managed to avoid this completely. After 925 Rudolf was involved in a war against the rebellious Herbert II, Count of Vermandois, who received support from kings Henry the Fowler and Otto I of East Francia. His rebellion continued until his death in 943. Louis IV King Louis IV and Duke Hugh the Great were married to sisters of East Frankish king Otto I who after the deaths of their husbands managed Carolingian and Robertine rule together with their brother Bruno the Great, archbishop of Cologne, as regent. After further victories by Herbert II, Louis was rescued