It blocks memory formation.
The active ingredient in marijuana acts in the part of the brain called the hippocampus to alter the way information is processed and how memories are formed. Animal studies have shown that this is particularly true while the brain is still developing — specifically why the legal smoking age is 21 in the states that have legalised it.