を眺めていた

was gazing at; was watching

→ を
phrase Rare #27,687
was gazing at; was watching Describes looking at something for a while, sometimes as it moves or changes.
JA: 私は太陽が西の海に沈んでいくのを眺めていた。
EN: I was watching the sun sink into the western sea.

しばらく、いつか訪れることになる星々を眺めていた。

For a while, I gazed at the stars I would one day visit.

私は太陽が西の海に沈んでいくのを眺めていた。

I was watching the sun sink into the western sea.

彼女はぼんやりと窓の外を眺めていた。

She gazed absently out the window.