Clavis Libri

Literary device

Situational Irony

What happens is the opposite of what was expected, or of what someone planned, in a way that reveals something about the characters or about the world of the work.

In The Prince

he told me, in the days when Julius II was created, that he had thought of everything that might arise from his father's death and had found a remedy for all of it, except that he never thought that, at the hour of that death, he himself would also be close to death

The man who planned everything that could arise from his father's death did not foresee his own illness at the same hour. The sentence says he "never thought" of it, and the contrast between the complete plan and the single failure is the irony.

Chapter VII: New Principalities Won with Others' Arms and Fortune, Machiavelli