avenge oneself (on someone or something) (for something)and avenge oneself (against someone or something) (for something)
to get even with, or take revenge against someone or something for some hurt or damage. They avenged themselves on the enemy for the surprise attack. He avenged himself against the storekeeper for the false charges. Mary avenged herself for her ex-husband's neglect to pay child support. Tom avenged himself on Bill for Bill's previous insults.