My father died of cancer.

Literal

Father [topic-は] cancer [because of-で] died.

がんで uses the causal で to mark the cause of death. がん is typically written in hiragana or katakana (ガン) rather than the kanji 癌 in everyday contexts. 死んだ is blunt — 亡くなった would be more respectful.