Sleepwalking, also known as somnambulism, occurs during non-REM (NREM) sleep, specifically in stage 3 of the sleep cycle, which is also known as deep sleep. This stage is the deepest stage of non-rapid eye movement (NREM) sleep, also known as N3 sleep. Sleepwalking is more common in children than in adults and is more likely to occur if a person has a family history of the condition, is sleep deprived, or is prone to repeated nighttime awakenings. It is important to note that sleepwalking can be dangerous, and it is crucial to take preventive measures, such as ensuring a better nights sleep, managing stress, avoiding alcohol, and creating a relaxing bedtime routine.