James Sheppard turned back an Anaheim rally with an unassisted tally midway through the third period and Dan Boyle also found the net for San Jose, which gained revenge for a 5-3 loss to the Ducks March 18.
Antti Niemi stopped 24-of-27 shots as the Sharks won for the second time in three games overall as they seek a Western Conference playoff spot.
Corey Perry provided a goal and an assist for the Pacific Division-leading Ducks, who fell for the third straight time.
Emerson Etem and Francois Beauchemin tallied and Viktor Fasth made 34 saves in the loss.
Boston schools pull out free condoms over wrapping complaints
Ray Liotta sues skin care company over use of likeness