The exact cause of narcolepsy is not fully understood, but it is believed to involve a combination of genetic and environmental factors. One of the key factors is the loss of hypocretin (orexin) neurons in the brain, which play a crucial role in regulating wakefulness and REM sleep. Autoimmune responses, infections, and stress may also contribute to the development of narcolepsy.