Dramatic irony occurs when the audience knows more about a situation or a character's circumstances than the characters themselves, creating tension and engagement as viewers anticipate the unfolding events. This literary device is commonly used to enhance storytelling by building suspense, humor, or poignancy, as the audience waits for characters to discover the truth.