Please lock the door before you leave for work.
Adjective clause modifying door
Adverb clause modifying lock
Noun clause used as a direct object