Researchers have developed and demonstrated a technique that allows them to engineer a class of materials called layered hybrid perovskites down to the atomic level, which dictates precisely how the materials convert electrical charge into light. The technique opens the door to engineering materials tailored for use in next-generation printed LEDs and lasers – and holds promise for engineering other materials for use in photovoltaic devices.