のだった

it was that…

→ の
phrase Extremely common #39
it was that… Where English uses phrases like "the truth was" or a knowing tone of voice to reveal the real reason behind something in the past, Japanese adds のだった (no datta) to the end of a sentence. It signals that you are giving the background explanation for a situation or sharing a sudden realization about how things really were. For example, 彼は疲れていたのだった (kare wa tsukarete ita no datta) means "The thing was, he was tired." In casual conversation, it is often shortened to んだった (n datta), as in 今日だったんだった (kyou datta n datta), meaning "Oh right, it was today!"
JA: 彼は本当に疲れていたのだった。
EN: It was that he was really tired.

そして今、警察に電話するために病気のおばあさんの家に急いでいたのだった。

And now, I was hurrying to the sick old woman’s house to call the police.

メアリーが自分を馬鹿にしていることに、彼はようやく気づいたのだった。

He finally realized that Mary was making a fool of him.

人間を見た私たちは初めて笑ったのだった

Upon seeing a human, we laughed for the first time.

— ベルリン・天使の詩 (1987)

彼は昨日になって初めて彼女に気づいたのだった。

It wasn't until yesterday that he noticed her.