The rebuilt burgh became in 1153 a fief of the Clavesana family, but soon later it was acquired by the Republic of Genoa. In 1273 it became an autonomous commune, later receiving a podestà named in Genoa, under which it remained until its disappearing in the Napoleonic Wars. Later it was part of the Kingdom of Sardinia (1815) and of the Kingdom of Italy (1861).