I couldn't attend the party because of illness.

Literal

Illness [by-で] I [topic-は] that party [to-に] attending [could-not-できなかった].

Uses causal で instead of のため — a more casual way to express cause. Same meaning as the many のため versions but in a simpler structure.