Scientists show how light affects perovskite film formation in solar cells, which is a critical factor in using them for cost-effective and energy-efficient photovoltaics.