 During the campaigning of 858, Humfrid had been enfeoffed with the County of Autun and been created Margrave of Burgundy.In 856, the Moors captured the castle of Terrassa near Barcelona.In 861, they besieged Barcelona itself, but Humfrid bought them off and renewed the treaty with the consent of Charles.