のせいだった

was because of

→ の
phrase Rare #36,940
was because of Often implies blame or an undesirable cause.
JA: 遅れたのは渋滞のせいだった。
EN: The traffic was why I was late.

彼の失敗は大部分不注意のせいだった。

His failure was largely due to carelessness.

学校が休みになったのは雪のせいだった。

School was canceled because of the snow.

その事故は下手な運転のせいだった。

That accident was caused by poor driving.

その事故は狭い道路のせいだったと、私たちは思う。

We think the accident was caused by the narrow road.

列車が止まったのは嵐のせいだった。

The train stopped because of the storm.