Occurs when what happens is the opposite of what is expected

1 answer

This is known as irony. It can be verbal irony, situational irony, or dramatic irony, depending on the context in which it occurs.