出去的时候把门关上。

Close the door when you leave.

Source: Tatoeba

Sentence Composition