get back at

Intermédiaire (B1) informal

To do something bad to someone because they did something bad to you first.

"She was furious and wanted to get back at him for telling everyone her secret."