Republic of Genoa
In 1247 it became a free commune and entered the Republic of Genoa in 1274, however maintaining its legislative autonomy.