Spens and Burgess develop a computational model that shows how the hippocampus encodes episodic memories and replays them to train generative models of the world. Conceptual and sensory representations of experience can then be recombined for imagination and memory.