Battle of Beneventum
The Battle of Beneventum in 275 B.C. was the last of the three battles fought between Rome and Pyrrhus. Pyrrhus had gone to Sicily and was met by the Romans when he returned to southern Italy with an army under the command of Manius Curius Dentatus. In a see-saw battle the Romans were again near defeat and it was again due to the judicious use of elephants against the Roman cavalry. But as the Romans were driven back to the walls of their camp, they were joined by the camp garrison and managed to turn the elephants back into the phalanx formation that Pyrrhus' troops were using. Though the battle was inconclusive, Pyrrhus decided to return to Greece.
Encyclopedia of Military History, Dupuy & Dupuy, 1979