Ermengol or Armengol II (died 1038),[1] called the Pilgrim, was the count of Urgell[2] from 1011 to his death.
Still a child when he succeeded his father, who was killed in battle against the Moors, he was put under the regency of his uncle Count Ramon Borrell of Barcelona until 1018.
With his uncle's help, Ermengol began a successful war of reconquest to the south, taking Montmagastre, Alòs, Malagastre, Rubió and Artesa.
Around 1024 the bishop of Urgell, Ermengol, led the county's feudal knights and armed retinues in the besieging and conquest of the Guissona plain from the Muslims of the Taifa of Zaragoza.
She may have been the homonymous daughter of Bernard I, Count of Besalú and Countess Tota-Adelaide, named in her father’s will in October 1021.