자

as soon as

Explanation

Attach -자 to an action to say what happened as soon as it took place. You’ll often see this in stories:

문을 열자 바람이 들어왔어요.

When I opened the door, wind came in.

Opening the door immediately let the wind in. The two clauses can have different subjects. The tense is shown by the final verb.

The sentence ends differently when you’re suggesting something. In 열자 (“let’s open it”), -자 ends the sentence. In the example above, the story continues after -자.