Dramatic irony occurs when the audience knows more about a situation than the characters in a play or story. This creates a tension between what the characters believe to be true and what the audience understands, often leading to suspense, humor, or emotional depth as events unfold.