Scientists used ultrafast X-rays to capture how azobenzene changes shape in trillionths of a second after absorbing light. This solves a 50-year mystery in molecular science.