帰宅したとき

when (someone) came home

→ 帰宅
phrase Uncommon #19,334
when (someone) came home 帰宅 means to return home, and とき means when.
JA: 帰宅したとき、母はもう寝ていました。
EN: When I came home, my mother was already asleep.

彼が帰宅したときには、太陽はもう沈んでしまっていた。

By the time he got home, the sun had already set.

でも途中でワインを飲んですべてを忘れてしまうの彼が帰宅したとき

But he drinks wine along the way and forgets everything by the time he gets home.

— 甘い生活 (1960)

あなたが帰宅したとき、お母さんは何をしていましたか。

What was your mother doing when you got home?

息子が無事帰宅したとき、彼女はたいへん喜んだ。

She was very happy when her son returned home safely.

彼女は夫が酔っぱらって帰宅したとき、腹を立てた。

She got angry when her husband came home drunk.

彼は帰宅したとき友人が自動車事故で死んだことを知った。

When he got home, he learned that his friend had died in a car accident.

彼が帰宅したとき私はちょうど手紙を書こうとしていた。

I was just about to write a letter when he got home.