 At the instigation of the house of Foix, Ermengol participated in the coalition of rebels against Peter III of Aragon in 1276, but in the succeeding two years he recovered all the territory of his county which had unto then been in the hands of his rivals