The history of the various maritime republics is quite varied, reflecting their different lifespans. Venice, Genoa, Noli, and Ragusa had very long lives, with an independence that outlasted the medieval period and continued up to the threshold of the contemporary era, when the Italian and European states were devastated by the Napoleonic Wars. Other republics kept their independence until the Renaissance: Pisa came under the dominion of the Republic of Florence in 1406, and Ancona came under control of the Papal States in 1532. Amalfi and Gaeta, though, lost their independence very soon: the first in 1131 and the second in 1140, both having passed into the hands of the Normans.