ためだった
tamedatta

Noun
Da Copula

The past form of ため

1. Was the reason; It was for

Past/Perfective