我正要离开家的时候电话响了。

I was just about to leave the house when the telephone rang.

Source: Tatoeba

Sentence Composition