In 288 BC the Mamertines seized the city by treachery, killing all the men and taking the women as their wives. The city became a base from which they ravaged the countryside, leading to a conflict with the expanding regional empire of Syracuse. Hiero II, tyrant of Syracuse, defeated the Mamertines near Mylae on the Longanus River and besieged Messina. Carthage assisted the Mamertines because of a long-standing conflict with Syracuse over dominance in Sicily. When Hiero attacked a second time in 264 BC, the Mamertines petitioned the Roman Republic for an alliance, hoping for more reliable protection. Although initially reluctant to assist lest it encourage other mercenary groups to mutiny, Rome was unwilling to see Carthaginian power spread further over Sicily and encroach on Italy. Rome therefore entered into an alliance with the Mamertines. In 264 BC, Roman troops were deployed to Sicily, the first time a Roman army acted outside the Italian Peninsula. At the end of the First Punic War it was a free city allied with Rome. In Roman times Messina, then known as Messana, had an important pharos (lighthouse). Messana was the base of Sextus Pompeius, during his war against Octavian.