 He conquered Calassanç and built a castle at Gerb, Spain, where he died, in an effort to pave the way to the recapture of Balaguer, which occurred during the reign of his son, Ermengol V, in 1102.Ermengol was a firm supporter of the contemporary Gregorian reform of the Church, which he introduced to Urgel.In 1077, Ermengol married Lucy, daughter of Artau I, Count of Pallars Sobirà, and granddaughter of Bernard I of La Marche.