Irony is a technique mostly used in comedies. An irony is when something expected does not happen rather the exact opposite happens.
For example: Poetry from The Rime of the Ancient Mariner by Samuel Taylor Coleridge.
"Water, water, every where,
And all the boards did shrink ;
Water, water, every where,
Nor any drop to drink."