In the Middle Ages it was a fief of Tortona, and in 1242 it was acquired by the Republic of Genoa which entrusted it to the Spinola family. Later it was under the Fieschi, who sold it back to Genoa in 1636. From 1815 it was part of the Kingdom of Sardinia, belonging to Italy from 1861.