Researchers used ancient climate cycles to confirm the solar system’s chaotic planetary orbits. An Earth–Mars collision is one distant outcome. Julia Rosen reports.