いけなかった

had to, needed to, was not allowed to, should not have, couldn't go

→ いけない
いけな must, have to + かった Past tense
adjective · past tense Uncommon #16,827
had to, needed to Used in the pattern ~なければいけなかった to say that something had to be done.
JA: 昨日は早く帰らなければいけなかった。
EN: I had to go home early yesterday.
was not allowed to, should not have Used in the pattern ~てはいけなかった to say that something was not allowed or should not have been done.
JA: そんなことを言ってはいけなかった。
EN: I shouldn't have said something like that.
Forms of いけない
いけないいけなかった

メアリーは学校に行かなきゃいけなかったんだ。

Mary had to go to school.

バスが遅れていたため、私たちは雨の中を長い間待たなければいけなかった。

Because the bus was delayed, we had to wait in the rain for a long time.

彼は 生まれてはいけなかった。

He should never have been born.

— ベイビー・ブローカー (2022)

連れて来てはいけなかったのかと心配してしまった

I started worrying that maybe I shouldn’t have brought them along.

— もののけ姫 (1997)

トムは一人で教室の掃除をしなきゃいけなかった。

Tom had to clean the classroom by himself.

どうして結婚しなきゃ いけなかったの?

Why did you have to get married?

— パンズ・ラビリンス (2006)

“確かな方法”の 何がいけなかったのか?

What was wrong with the “reliable method”?

— ダンガル きっと、つよくなる (2016)

家の手伝いをしないといけなかったの。

I had to help around the house.

いけなかったな

I couldn't go.

— 甘い生活 (1960)

昨日は、勉強しなきゃいけなかったの。

I had to study yesterday.

何でトムはそれやらなきゃいけなかったの?

Why did Tom have to do that?

verb · informal, past tense Rare #23,455
couldn't go, couldn't (do something) Negative past potential form of 行く; the context determines whether it means being unable to go or being unable to do something.
JA: きのうは学校にいけなかった。
EN: I couldn't go to school yesterday.
had to In the expression ~なければいけなかった or ~なきゃいけなかった, it means that something was necessary.
JA: 早く起きなければいけなかった。
EN: I had to get up early.
Conjugation of 行く

あなたの病気について知らなかったので、病院へ見舞いにいけなかった。

I didn’t know you were ill, so I couldn’t come to the hospital to visit you.

嵐のために散歩にいけなかった。

I couldn't go for a walk because of the storm.

トムは、メアリーがなぜそうしなければいけなかったのか、理解しているようだった。

Tom seemed to understand why Mary had to do that.

マックスはジュリーに、なぜ彼女のお別れパーティーにいけなかったかを説明した。

Max explained to Julie why he couldn’t attend her farewell party.

彼は非常に疲れていたのでそれ以上遠くにいけなかった。

He was so exhausted that he couldn’t go any farther.

それにいくら払わなければいけなかったの?

How much did you have to pay for it?

やらなきゃいけなかったのなら、あの時やってたよ。

If I’d had to do it, I would have done it then.