A comedy is a form of play that has a happy and playful ending and a tragedy is a play where there is a fall in main characters or events that is disturbing.
While a mystery play is a form of drama based on the biblical events, and the miracle is a type of religious drama that is related to the life of the saints and martyrs of the middle ages.
The morality play is a form of drama that consists of the used popular legends in order to teach some morals through the allegory.