Physiologically, sleep paralysis is closely related to REM atonia, the
paralysis that occurs as a natural part of REM (rapid eye movement)
sleep.
Sleep paralysis occurs either when falling asleep, or when awakening. When it occurs upon falling asleep, the person remains aware while the body shuts down for REM sleep, and it is called hypnagogic or predormital sleep paralysis.