Dramatic irony occurs when the audience knows something the characters don't know.
For example, in Romeo and Juliet, Romeo thinks Juliet is dead, when in fact she is merely sleeping because she drank the potion. However, thinking she is no longer alive, Romeo kills himself.
The audience knows she is alive, but he doesn't, which makes this dramatic irony.