Metal-oxide nanostructures are used in a range of light-driven applications, yet the fundamentals behind their properties are poorly understood. Here the authors probe photoexcited zinc oxide nanoparticles using time-resolved X-ray spectroscopy, identifying photocatalytically-active hole traps as oxygen vacancies in the lattice.