Wikipedia defines poetic justice as a literary device in which virtue is ultimately rewarded or vice punished, often in modern literature by an ironic twist of fate intimately related to the character's own conduct. The structure of poetry, prose, and drama to have justice originates in Aristotle's Poetics.