 He was appointed count and margrave of several counties in the "Marca Hispanica" by Charles, possibly as early as 854 and no later than 858.In 858, Humfrid negotiated a treaty of peace with Abd al-Rahman, the Moorish governor of Zaragoza, and marched into Gaul to the assistance of Charles.He arrived at Beaune in February and he did homage to the king on 21 March.