我們正要離開的時候下雨了。

We were just about to leave when it started to rain.

We were just about to leave when it started raining.

Source: Tatoeba

Sentence Composition