neutralize
neutralise
nullify
negate
make ineffective by counterbalancing the effect of
Her optimism neutralizes his gloom
This action will negate the effect of my efforts