Definition: In literature, the use of a nemesis refers to a situation of poetic justice wherein the positive characters are rewarded and the negative characters are penalized. The word also sometimes refers to the character or medium by which this justice is brought about as Nemesis was the patron goddess of vengeance according to classical mythology.
Example: In the popular book series Harry Potter, the protagonist Harry Potter is the nemesis of the evil Lord Voldemort.