Ferdinand III of Castile received the submission of the Moorish king of Murcia under the terms of the 1243 and made the territory a protectorate of the Crown of Castile. There were towns that rejected compliance with the treaty, such as Qartayanna-Al halfa (Cartagena), Lurqa (Lorca) and Mula. There were also towns where governors accepted the treaty but the inhabitants did not, such as Aledo, Ricote, Uruyla (Orihuela), and Medina La-Quant (Alicante), (although the two last do not belong to the present-day Region of Murcia; they were part of the Taifa of Murcia). In 1245, a Castilian army and a fleet from the Cantabrian Sea conquered Qartayanna. Consequently, the rest of the rebellious towns were also taken by the Castilians. Following the support of local Muslims for the Mudéjar revolt of 1264–1266, in 1266 Alfonso X of Castile annexed the territory outright with critical military support from his uncle Jaime I of Aragon.