 Shortly after, they defended the Principality of Catalonia against the invasion attempt of the Armagnac count in 1390, and the next attempt of the Foix count from 1396 up to 1397.In the 15th century, there were still groups of Almogavars in the Italian wars of Alfonso the Magnificent.The presence of Almogavars in Castile, despite being somewhat unknown, is well documented.