The first five books of Livy's history of Rome record the city's foundations through the Republic to Rome's recovery after the Gallic invasion of the 4th century BC.