For the next generation of clean energy technologies, the fundamental understanding and development of new materials are crucial. This talk highlights the use of advanced modelling methods in synergy with experiment to gain new insights into defect and transport properties of materials for lithium batteries and perovskite solar cells.