Muhammad obtained his freedom and Christian support to recover his throne in 1487, by consenting to hold Granada as a tributary kingdom under the Catholic monarchs. He further undertook not to intervene in the Siege of Málaga, in which Málaga was taken by the Christians.