Episodic memories are formed at points of high prediction error, uncertainty, surprise, or motivationally significant periods. These moments of maximum uncertainty or surprise are the most optimal for encoding episodic memories as they provide the most useful and unique information. The hippocampus and other networks involved in generating internal models of events show heightened connectivity during breaks between events, known as event boundaries, leading to better memory. By capturing episodic memories at these event boundaries, where uncertainty is highest, individuals can enhance memory retrieval and processing to build a more accurate internal model of the experience.