During the 15th century, the city subsumed into decadence, just like most of the rest of cities of the Kingdom of Fez located along the Mediterranean coast, eclipsed by those along the Atlantic facade. Following the completion of the conquest of the Nasrid Kingdom of Granada by the Catholic Monarchs in 1492, their Secretary started to compile information about the sorry state of the north-African coast with the prospect of a potential territorial expansion in mind, sending field agents to investigate, and subsequently reporting the Catholic Monarchs that, by early 1494, locals had expelled the authority of the Sultan of Fez and had offered to pledge service. While the 1494 Treaty of Tordesillas put Melilla and Cazaza (until then reserved to the Portuguese) under the sphere of Castile, the conquest of the city had to wait, delayed by the occupation of Naples by Charles VIII of France.