Tiny bits of Earth’s atmosphere have been drifting to the moon for billions of years, guided by Earth’s magnetic field. Rather than blocking particles, the magnetic field can funnel them along invisible lines that sometimes stretch all the way to the moon. This explains mysterious gases found in Apollo samples and suggests lunar soil may hold a long-term archive of Earth’s history. It could also become a valuable resource for future lunar explorers.