 Ameglia was chosen by the diocese as an episcopal residence, its walls fortified and reinforced, during the 11th century.In 1141, part of the fief was purchased by Genoa, which held it until 1252 when it entered into the possession of Nicolò Fieschi, count of Lavagna.Occupied for a brief period by Oberto Doria and Oberto Spinola, possession of Ameglia returned, by 1284, to the bishops of Luni.