An elite Manhattan private school allegedly expelled a student last year for confronting a bully — soon after her father was diagnosed with terminal cancer, according to a new lawsuit.

The all-girls Hewitt School on the Upper East Side showed a “shockingly callous attitude” toward the student, who was “dealing with the imminent death of her father caused by a devastating illness,” the papers claim.

Filed by the girl’s mother, the suit also claims that the Palestinian-American Muslim girl was targeted by school brass because of her background.

After the girl was repeatedly bullied by a classmate, she confronted her tormentor and told her she was “not afraid of her” and asked if she wanted to fight, the case states. Even though there was no physical altercation, she was expelled less than a day after the incident, the suit states.

A school spokeswoman said the suit limits what officials can say but added that the school “stands behind the decisions we make and the actions we take to protect and preserve the teaching and learning environment for our girls and young women.”