The Judicate of Arborea or the Kingdom of Arborea was one of the four independent judicates into which the island of Sardinia was divided in the Middle Ages. It occupied the central-west portion of the island, wedged between Logudoro to the north and east, Cagliari to the south and east, and the Mediterranean Sea to the west. To the northeast and beyond Logudoro was Gallura, with which Arborea had far less interaction. Arborea outlasted her neighbours, surviving well into the 15th century. At its greatest territorial extent it occupied the entire island except the cities of Alghero and Cagliari. The earliest known judicial seat was Tharros, though Oristano served as capital for most of its existence.