Foral

The Carta de Foral, or simply Foral, was a royal document in Portugal and its former empire, whose purpose was to establish a concelho (Council) and regulate its administration, borders and privileges. A newly founded town would also need the king's approval through a Foral, in order to be considered one. In this case, the town's administration and privileges would be defined in that document. Forais were granted between the 12th and the 16th centuries.
The Foral was the basis for
A pillory (pelourinho) is directly linked to a Foral. It was raised after the Foral was granted and placed in the main square of the town.
The noun foral (European Portuguese: [fuˈɾal], plural: forais) is derived from the Portuguese word foro, ultimately from Latin forum, and is cognate with Spanish fuero, Galician foro, Catalan fur and Basque foru.