The war lasted 23 years, the longest war in Romano-Greek history and the greatest naval war of the ancient world. In its aftermath Carthage attempted to avoid paying in full the foreign troops who had fought its war. Eventually they rebelled and were joined by many disgruntled local groups. They were put down with great difficulty and considerable savagery. In 237 BC Carthage prepared an expedition to recover the island of Sardinia, which had been lost to the rebels. Cynically, the Romans stated they considered this an act of war. Their peace terms were the ceding of Sardinia and Corsica and the payment of an additional 1,200-talent indemnity. Weakened by 30 years of war, Carthage agreed rather than enter into a conflict with Rome again; the additional payment and the renunciation of Sardinia and Corsica were added to the treaty as a codicil. These actions by Rome fuelled resentment in Carthage, which was not reconciled to Rome's perception of its situation, and are considered contributory factors in the outbreak of the Second Punic War.