SAN FRANCISCO -- Jake Peavy pitched seven innings for his first win and added a two-run single off Miami ace Jose Fernandez, and the San Francisco Giants beat the Marlins 7-2 on Saturday night.
Gregor Blanco tripled twice and scored two runs while Matt Duffy had three hits and scored for the Giants, who have won two straight following a five-game losing streak.
Peavy (1-1) failed to get past the fifth inning in his three previous starts and had another up-and-down outing against the Marlins before finishing strong to end his skid.
Miami had runners on base in each of the first six innings but Peavy repeatedly pitched out of trouble while giving up two runs, seven hits with four strikeouts and one walk.
Fernandez (1-2) allowed four runs over six innings in his first career start at AT&T Park.
The Giants led 2-0 and loaded the bases with two outs in the fourth when Fernandez intentionally walked Gregor Blanco. The move backfired quickly when Peavy lined a two-run single to left.
San Francisco's 2007 NL Cy Young winner also made a sparkling defensive play an inning earlier after Miami scored on Marcell Ozuna's two-out RBI triple. One batter later Peavy made a sliding grab on Christian Yelich's slow dribbler toward third base and threw from his knees to first for the out.
Fernandez singled twice and scored for Miami. Justin Bour added three hits.