Late Heavy Bombardment
One popular theory is that the gas giant planets (or at least Jupiter) migrated in orbit at this time: see Grand tack hypothesis. This caused objects in the asteroid belt and/or Kuiper belt to be forced into orbits which reached the terrestrial planets.