How did Earth keep away from a Mars-like destiny? Historical rocks maintain clues