 There are abundant references to the existence of Almogavars in the Kingdom of Portugal, who played an important role in the African campaigns in which they were immersed in the 15th and 16th centuries, where Almogavars and Almocadenes guarded the borders of the Portuguese possessions in North Africa.Their military rank, exactly the same as their Castilian and Aragonese counterparts, is collected in Alfonsine Ordinances, and the Chronicle of King Manuel states ""They sent Almogavars to run (...) to attack the Moors"".The end of the great wars of expansion in the Iberian Peninsula, with only the Kingdom of Granada resisting, meant the gradual decrease in the number of Almogavars.