 By 900, these districts had become "de facto" independent states, their ruling kings still titled as "iudices" or "" ("judges"') after their imperial civil servant predecessors.The first capital city for the Giudicato of Logudoro was ancient Torres (now Porto Torres), but it was exposed to Arab attacks, and so the seat of the judgeship was transferred first to Ardara, and finally to Sassari.Logudoro only began to emerge from the fog of history during the reign of Barisone I from about 1038 to 1073.