After that, Rome hastily rebuilt its buildings and went on the offensive, conquering the Etruscans and seizing territory from the Gauls in the north. After 345 BC, Rome pushed south against other Latins. Their main enemy in this quadrant were the fierce Samnites, who outsmarted and trapped the legions in 321 BC at the Battle of Caudine Forks. In spite of these and other temporary setbacks, the Romans advanced steadily. By 290 BC, Rome controlled over half of the Italian peninsula. In the 3rd century BC, Rome brought the Greek poleis in the south under its control as well.