ためでわありませんでした
為ではありませんでした
tamedewārimasendeshita

Noun
Desu Copula

The polite, past negative form of ため

1. Was not.; Was not so.; It wasn't the case.

Past/Perfective
Negative
Polite
Formal Register
Usually Written in Kana