Synchrotron-based hard X-ray microtomography is used to image the electrochemical growth of dendrites from a lithium metal electrode through a solid polymer electrolyte membrane.