Lucid dreaming is a phenomenon that occurs when a person is dreaming and realizes that they are dreaming. This allows the person to take control of their dream and do things that would be impossible in real life. For example, a person may be able to fly or become invisible.