A comedy play is a type of drama or other type of art whose soul objective is to make people laugh. It is on the one hand the opposite of tragedy and on the other the opposite of farce or burlesque.
Some examples of comedy in theatre are the play that goes wrong, the comedy about a bank robbery, magic goes wrong, Peter Pan goes wrong and the book of Morman. The first four were made by the same company Mischief Theatre, a UK theatre company which specializes in comedy.
Comedy was seen through plays in ancient Greece by playwrights like Pericles, Plato, Aristophanes, and Demosthenes. Comedy in the Elizabethan era was marked with happy endings, which is usually with a marriage at the end of the play. Shakespeare’s comedies, for example, were far more joyful than his dramas because the characters were delighted at the end.
*Fun Fact* Aristophanes' Acharnians was the first-ever play which was in the 5th century