King Afonso V of Portugal is reported to have invoked the memory of the martyrdom of his uncle in his three Moroccan campaigns of 1458, 1463/4 and 1471. In the last campaign, the conquest of Asilah, Afonso finally captured Tangier. In the aftermath, negotiations were opened between Afonso and the Moroccan strongman Muhammad al-Sheikh to deliver the bones and bodily remains of Ferdinand, which were still in Fez. These negotiations dragged on for a while, but the remains were finally obtained by the Portuguese in 1473 (or perhaps 1472) One version relates that a disgruntled Moroccan courtier, said to be the ruler's own nephew, seized the coffin containing Ferdinand's body, smuggled it out of Fez, and brought it all the way to Lisbon to sell to the Portuguese king for a considerable sum. There were subsequently great ceremonies in depositing the bodily remains in Ferdinand's tomb in Batalha.