How does human memory work?

Memory is not a perfect recording. The brain encodes parts of an experience, consolidates them and later reconstructs the event using stored details, emotion, expectations and existing knowledge.