Irony is a literary device in which the opposite of what is expected occurs, often for a humorous or dramatic effect.