とは違っていた

was different from

→ と
phrase Rare #32,686
was different from Used to say that something or someone was different from a person or thing marked by とは. 違っていた is the past form of 違っている.
JA: 彼の説明は私が聞いていた話とは違っていた。
EN: His explanation was different from what I had heard.

彼は私が思ったとは違っていた

He was different from what I had expected.

私は他の若者たちとは他の若者たちとは違っていた

Unlike other young people, I was different.

— 教皇選挙 (2024)

何をすべきかについて私の考え彼の考えとは違っていた

My opinion about what should be done differed from his.