what [someone] had to do
Yo hice lo que tenía que hacer.
I did what I had to do.
Sólo he hecho lo que tenía que hacer.
I just did what I had to do.
No me importaba lo que tenía que hacer.
I didn't care what I had to do.
Ya había terminado todo lo que tenía que hacer aquí.
I had already finished everything I had to do here.
Tom dijo que él no sabía lo que tenía que hacer.
Tom said he didn't know what he had to do.
Hice lo que tenía que hacer para sobrevivir.
I did what I had to do to survive.
Todo el mundo sabía lo que tenía que hacer.
Everyone knew what they had to do.
Tom le dijo a Mary lo que tenía que hacer.
Tom told Mary what she had to do.
Tom se dio cuenta de lo que tenía que hacer.
Tom realized what he had to do.
Tom solo estaba haciendo lo que tenía que hacer.
Tom was just doing what he had to do.