 In 1255 Alfonso X the Wise declared it "Villa Realenga" (Royal Town).The town maintained that privilege until 1332.In Aguilar is Galletas Gullón factory, the largest manufacturer of biscuits in Spain and one of the largest in Europe.