だとは知らなかった

I didn't know that ... was ...; I had no idea that ...

→ だ
phrase Uncommon #15,602
I didn't know that ... was ...; I had no idea that ... Used to express surprise upon learning information. The pattern だとは知らなかった follows a noun or な-adjective and emphasizes that the speaker was unaware of the fact. It is generally neutral in politeness, while よ or other sentence-ending particles can make it more conversational.
JA: トムがダンスの先生だとは知らなかったよ。
EN: I had no idea Tom was a dance teacher.

トムダンス先生だとは知らなかった

I didn't know Tom was a dance teacher.

私は彼が日本人だとは知らなかった

I didn't know he was Japanese.

君がそんなに野心的だとは知らなかった

I didn't know you were so ambitious.

— 教皇選挙 (2024)

トムその赤ん坊がメアリーだとは知らなかった

Tom didn't know that the baby was Mary.

今まで兄弟だとは知らなかった

I never knew they were siblings.

彼があんなにひどい状況だとは知らなかった

I didn't know he was in such a terrible situation.

— 善き人のためのソナタ (2006)

あなただとは知らなかった

I didn't know it was you.

— ウィキッド ふたりの魔女 (2024)

あっごめん違法だとは知らなかった

Oh, sorry, I didn't know it was illegal.