A play ending unhappily is a tragedy. The protagonist (tragic hero) faces overwhelming obstacles, makes a fatal choice (hamartia), and falls from high status to ruin, evoking pity and fear (catharsis). Classic examples:
Tragedies explore fate, hubris, and human suffering.