기 전에
before [verb]ing
Explanation
기 전에 is a time construction meaning before doing …. It combines the noun-forming ending 기 with 전에 (“before”).
Put one action before another
Remove 다 from the action verb and add 기 전에: 자다 → 자기 전에, “before sleeping.” Then say what happens first.
Put tense on the main action
To describe a past event, change the final verb. 자기 전에 stays the same.
Write 기 attached to the verb and a space before 전에.
With a noun that already names an event, put 전에 directly after it. 수업 전에 names the event; 수업을 시작하기 전에 spells out the action.