coun ‧ ter ‧ act /ˌkaʊntərˈækt/ BrE AmE verb [transitive]
to reduce or prevent the bad effect of something, by doing something that has the opposite effect:
They gave him drugs to counteract his withdrawal symptoms.
—counteraction /-ˈækʃ ə n/ noun [uncountable and countable]