a punishment for something bad that you have done, that other people feel you really deserve I was glad to see that the bad guy got his comeuppance at the end of the movie.
Check pronunciation: comeuppance
Definition of comeuppance noun from the Oxford Advanced American Dictionary