Tenía que

had to

→ tener
phrase Rare #55,476
had to Used with an infinitive to express necessity or obligation in the past. It can also convey frustration or resignation, as in “It just had to…”.
SP: Tenía que llover justo hoy.
EN: It just had to rain today.

¿Tenía que ocurrir algo?

Was something supposed to happen?

— Roma. Ciudad abierta (1945)

¡Tenía que ser Himmler!

It had to be Himmler!

— El hundimiento (2004)

¡Tenía que ser mi suerte!

Just my luck!

— El ladrón (1997)

¡Tenía que ser un mal año!

It had to be a bad year!

— La linterna roja (1991)