Structural defects cause TiO2-based photocatalysts to be active in visible light.