To do something harmful or negative to get revenge for some harm; to fight back or respond in kind to an injury or affront.
John insulted Peter to retaliate for Peter's acid remark earlier.
To repay or requite by an act of the same kind.