Dreams do not last for over 20 minutes and the they mainly occur during the REM stage (Rapid Eye Movement), when brain activity is high, which is revealed by continuous movements of the eyes.
People tend to remember their dreams better when they are awake in the REM stage, in contrast to dreams that may occur during other stages, which are less vivid.
Got anything to add?