The commune of Petra became part of the Republic of Genoa in 1385. It was renamed Pietra Ligure in 1863.