Is used to contrast expectations and reality. There are three main types of irony:

Dramatic, the audience knows something that the main characters do not.

Situational, an expected outcome is turned 180 degrees.

Verbal, the speaker’s words do not match his intent. E.G., says one thing but means another.