Antonymic idiom for "adding fuel to the fire"

Solution 1:

I'd have used the direct opposite "douse the flames" but apparently that is not common enough an idiom.

Otherwise the one that's used more widely would probably be "stop the rot".