Please turn off the lights before you leave the room.

Literal

Room [object-を] exit [before-前に] lights [object-を] turn-off [please-てください].

Uses ~前に (before) to set a temporal condition. Note the dictionary form 出る before 前に — Japanese uses the non-past form regardless of the main clause's tense.