Samnite Wars
Scholars generally believe that the transformation of the early army into the "manipular" army of the mid-Republic took place during the Samnite Wars (which ended in 290 BC).