Lucid dreaming refers to the ability to become aware during a dream that you are in fact, dreaming, and being able to exert some control over what happens in the dream.
FORBES: Saying 'Hi' Through A Dream: How The Internet Could Make Sleeping More Social