Roman victory in the Samnite Wars (343–290 BC) resulted in effective Roman dominance of the Italian peninsula. This dominance was expressed in a collection of alliances between Rome and the cities and communities of Italy, on more or less favorable terms depending on whether a given city had voluntarily allied with Rome or been defeated in war. These cities were theoretically independent, but in practice Rome had the right to demand from them tribute money and a certain number of soldiers: by the 2nd century BC the Italian allies contributed between one half and two-thirds of the soldiers in Roman armies. Rome also had virtual control over the allies' foreign policy, including their interaction with one another. Aside from the Second Punic War, where Hannibal had limited success in turning some Italian communities against Rome, for the most part the Italian communities were content to remain as client states of Rome in return for local autonomy.