當他回家時,我遇到了他。

I met him while he was coming home.

Source: Tatoeba

Sentence Composition