For example, in the play _Romeo and Juliet_, the audience knows that Romeo and Juliet are both in love with each other and that their families will never approve of their relationship. This knowledge creates a sense of dramatic irony, as the audience watches the two characters make choices that will ultimately lead to their deaths.
Dramatic irony can also be used to create humor. For example, in the film _The Princess Bride_, the audience knows that the character Fezzik is a giant, but the character Inigo does not. This leads to a series of humorous scenes, as Inigo tries to fight Fezzik without realizing how big he is.
Dramatic irony is a powerful tool that can be used to create a variety of effects in dramatic works. It can create tension, suspense, and humor, and it can also help to reveal the characters' inner thoughts and motivations.