Ermengol VIII (1158–1208), known as el de Sant Hilari, was count of Urgell from 1184 until his death. He was the son of Ermengol VII and Dulce, daughter of Roger III of Foix.
In 1178, he married Elvira of Subirats. Their only child was a daughter, Aurembiaix, whose right to succeed him later became contested.
During Ermengol’s reign, the influence of his house declined amid conflict with the viscounts of Àger. Disorder began in 1206 when Guerau IV of Cabrera challenged Aurembiaix’s succession. Ermengol secured a promise from Peter II of Aragon to defend the rights of his widow and daughter.