 This charter progressively incorporated several amendments.The second "fuero", probably conceived during the reign of Alfonso VIII, was anyways confirmed by Ferdinand III on 26 May 1219 and 13 April 1251.During the reign of Alfonso X of Castile, the protection of the king allowed the city to develop its economy by protecting merchants and allowing markets.