 Axataf was declared military commander of the city and ruled along with a council of nobles.However, he could not resist the siege imposed by Ferdinand III and the city had to surrender to the Christians on November 23, 1248.Axataf handed the keys of the city to the Castilian king.