Use a whole clause as the subject, object, time, reason or contrast in a sentence.
A whole clause acting as a subject or object — What she said surprised me.
When, while, before, after, as soon as — saying when something happens.
Because, since, so that — explaining why, in a full clause rather than a phrase.
Although, even though, whereas — a full clause that contrasts with the main one.