After the defeat of Meloria in 1284, the territory of the Republic gradually became more continental, limiting itself to the coast and to the immediate hinterland that from Migliarino to Piombino, with the islands of Elba, Gorgona, Pianosa, Giglio and Giannutri and the exclaves of Castiglione della Pescaia and Porto Ercole.