The commune of Lerma was incorporated into the Republic of Genoa in 1282 as a fiefdom for a succession of Genoese nobles.