しなければなりませんでした

had to do

→ 為る
phrase Rare #42,497
had to do Expresses an obligation or necessity in the past.
JA: 私は、授業についていくために一生懸命勉強しなければなりませんでした。
EN: I had to study hard to keep up with the class.

何かをしなければなりませんでした。

I had to do something.

— ウィキッド 永遠の約束 (2025)

木の下で雨宿りしなければなりませんでした。

I had to take shelter from the rain under a tree.