Many medications can cause memory loss, including benzodiazepines, opioids, certain antidepressants, and antihistamines.