An engram or memory engram was an impression made physically in neural tissue of the brain by any mental stimulus, thereby explaining the persistence of memory.
Shortly before 2268, Dr. Richard Daystrom developed multitronics – a method of constructing a computer that could think, and of impressing memory engrams upon its circuits. The result was the M-5 multitronic unit, developed with Daystrom's own engrams. As Daystrom was near a nervous breakdown at the time, the M-5 was (like its predecessors M-1 through M-4) "not entirely successful". While multitronics showed some promise, it was eventually superseded by isolinear circuitry. (TOS: "The Ultimate Computer")
Memory beams were able to influence one's memory by erasing engrams in the neural tissue. James T. Kirk experienced this first hand on Amerind. (TOS: "The Paradise Syndrome")
Telepathic memory retrieval, as used by the Ullians, involved their using telepathic abilities to retrieve and expand lost or faded memory engrams of an individual. (TNG: "Violations")
The memory virus was a pathogenic parasite that disguised itself as a memory engram – normally a memory so traumatic that the host suppressed it into the subconscious. (VOY: "Flashback")
A memory wipe is a medical procedure designed for the purpose of selectively eliminating memory engrams from the mind of an individual. (TNG: "Pen Pals"; DS9: "Sons of Mogh")
The Banea punished murderers by forcing them to relive their victim's last moments every fourteen hours; this was done by inserting the memory engrams of the victim into their brain. Tom Paris' reaction to this method showed that it harmed the Human brain. (VOY: "Ex Post Facto")
The Doctor conducted biomolecular scans of Tom Paris and B'Elanna Torres following their exhibiting odd behavior, performing actions while on duty aboard the USS Voyager but claiming to know nothing about them. He discovered that during these incidents, a different memory pattern was present in place of their normal engrams, which he believed to be an entirely different brain wave pattern superimposed over their own. (VOY: "Cathexis")
The Mari sought out memory engrams that contained the memories of violent thoughts. The Mari then removed those engrams, because having violent thoughts was a crime on their world. This procedure was known as an engramatic purge. (VOY: "Random Thoughts")
The Quarren edited the memory engrams of humanoids they captured in order to gather workers for their homeworld of Quarra. (VOY: "Workforce", "Workforce, Part II")
In 2375, several of Data's memory engrams were damaged after he was shot by a Son'a weapon on the Ba'ku planet. This caused the activation of his memory loss fail-safe system. Later, on board the USS Enterprise-E, Geordi La Forge replaced them. When Data was reactivated, his first inquiry was pertaining to the missing engrams. (Star Trek: Insurrection)
In an alternate 2379, Kes had lost over ninety-nine percent of her memory engrams due to the effect of the morilogium. After being sent back in time a few weeks due to a side-effect of The Doctor's bio-temporal chamber, she had lost over ninety-eight percent of the engrams. After yet another such time-shift, to her ninth birthday, the amount was reported as over ninety-five percent. (VOY: "Before and After")
In the 29th century, Lieutenant Ducane explained that because Kathryn Janeway and Seven of Nine were never transported into their relative futures, their memory engrams would not require re-sequencing. (VOY: "Relativity")