On 17 June 1333, Vasco Perez surrendered Gibraltar after agreeing to terms with Abd al-Malik. It was reported that he had been hoarding a supply of food in his own storerooms, enough for feeding the whole besieged population for five days. He had been keeping a number of well-fed Moorish captives in his own house with the apparent intention of ransoming them.