Lithium-rich layered oxides are promising cathode materials for next-generation batteries, but they suffer from long-standing problems such as voltage decay during cycling. Here the authors analyse the root cause of voltage decay and present a structure engineering strategy to mitigate the issue for a cobalt-free, lithium-rich layered oxide.