A treaty was agreed. By its terms Carthage paid large reparations and Sicily was annexed as a Roman province. Henceforth Rome was the leading military power in the western Mediterranean, and increasingly the Mediterranean region as a whole. The immense effort of building 1,000 galleys during the war laid the foundation for Rome's maritime dominance for 600 years. The end of the war sparked a major but unsuccessful revolt within the Carthaginian Empire. The unresolved strategic competition between Rome and Carthage led to the eruption of the Second Punic War in 218 BC.