 Jorge de Alencastre, son of King John II, first expanded the settlement in 1425.On 1 January 1512, the settlers benefited from a "foral" ("charter") issued by the Aviz, and granted by King Manuel I.By 1538, King John III elevated the settlement to the status of town.