Logroño was an old settlement, first of the Romans, under the name of Vareia, a commercial port, and then of the Celts[dubious – discuss]. From the 10th century, possession of Logroño was disputed between the kings of Navarre and those of Castile; the region was finally annexed to Castile. The name is a combination of le and Groin, mashed together as Logroño over time. Alfonso VI of Castile granted Logroño in 1095 a charter of rights that served as a model for other Spanish cities. In 1609 and 1610 Logroño was the main seat of the Basque witch trials, part of the Spanish Inquisition.