by this language, which was adopted locally decades before it expanded to the rest of the Crown of Aragon. The local economy during the Middle Ages was based on livestock, agriculture, furs and weavers. Later, at the end of the 11th century, the first iron foundries began to appear in Northern Parishes like Ordino, much appreciated by the master artisans who developed the art of the forges, an important economic activity in the country from the 15th century. 16th to 18th centuries In 1601 the Tribunal de Corts (High Court of Justice) was created as a result of Huguenot rebellions in France, Inquisition courts coming from Spain and witchcraft-related beliefs native to the area, in the context of the Reformation and Counter-Reformation. With the passage of time, the co-title to Andorra passed to the kings of Navarre. After Henry III of Navarre became king of France, he issued an edict in 1607 that established the head of the French state and the bishop of Urgell as co-princes of Andorra, a political arrangement that still holds. During 1617, communal councils form the sometent (popular militia or army) to deal with the rise of bandolerisme (brigandage) and the Consell de la Terra was defined and structured in terms of its composition, organization and competences current today. Andorra continued with the same economic system that it had during the 12th–14th centuries with a large production of metallurgy (fargues, a system similar to Farga Catalana) and with the introduction of tobacco circa 1692 and import trade. In 1371 and 1448, the co-princes ratified the fair of Andorra la Vella, the most important annual national festival commercially ever since. The country had a unique and experienced guild of weavers, Confraria de Paraires i Teixidors, in Escaldes-Engordany. Founded in 1604, it took advantage of the local thermal waters. By this time, the country was characterized by the social system of prohoms (wealthy society) and casalers (rest of the population with smaller economic acquisition), deriving from the tradition of pubilla and hereu. Three centuries after its foundation, the Consell de la Terra located its headquarters and the Tribunal de Corts in Casa de la Vall in 1702. The manor house built in 1580 served as a noble fortress of the Busquets family. Inside the parliament was placed the Closet of the six keys (Armari de les sis claus), representative of each Andorran parish, where the Andorran constitution