Poetic Justice

Meaning
A fitting or deserved retribution for one's actions
Usage in a Sentence
The villain's downfall in the story was poetic justice.