 Due to a famine, the city capitulated on 23 November 1248.The terms specified that the Castillian troops would be allowed to enter the alcázar no later than a month later.Ferdinand made his triumphant entry into the city on 22 December 1248.