Patient HM, underwent surgery to treat his severe epilepsy, which resulted in the removal of parts of his temporal lobe. This led to a profound impairment in his ability to form new long-term memories, while his short-term memory and other cognitive functions remained relatively unaffected.