X-rays enable the structure of matter to be imaged with near-atomic resolution, but the continuous output of conventional X-ray sources prevents rapidly evolving changes in the material's structure to be followed. The emission of a train of attosecond X-ray pulses from a laser-driven relativistic plasma could solve this limitation.