There are people who can not only recognize when they are dreaming but who can take full control of their dreams. This is known as lucid dreams.

Fact source