when ... endsFollows a noun or noun phrase to indicate that something ends, often connecting it to what happens next. In formal or literary writing, it can mean “with ... ending” or “after ... ends.”
JA: 長い会議が終わり、みんなで昼食を食べに行った。
EN: When the long meeting ended, we all went out to lunch.