(AP) Matt Cain pitched seven innings, Gregor Blanco hit a two-run triple and the San Francisco Giants beat the Miami Marlins 6-4 on Saturday night.
Pablo Sandoval also drove in two runs for the Giants, a day after they outslugged Miami 14-10.
Giancarlo Stanton hit a two-run home run for Miami.
Cain (8-8) allowed two runs and four hits. He struck out five and walked two.
Sergio Romo got his 30th save in 34 chances.
Henderson Alvarez (2-2) allowed four runs, four hits and four walks while striking out four in seven innings.
Logan Morrison hit a two-run double in the eighth off Santiago Casilla to pull the Marlins within 6-4. Casilla retired the next two batters to get out of the inning and Romo pitched a perfect ninth.
San Francisco broke the scoreless tie in the fourth by scoring four times, helped when Sandoval beat out an infield hit and withstood a collision at first.
It would have been the final out of the inning as Morrison raced to the bag, but Sandoval made a head-first slide to beat the Miami first baseman and score Brandon Belt.
Alvarez then balked home a run and Blanco tripled, scoring Sandoval and Roger Kieschnick for a 4-0 lead. Center fielder Jake Marisnick made a dive for the ball, but could not get a glove on it.
Stanton's two-run home run his 14th cut the Miami deficit to 4-2 in the sixth. Just before connecting on the estimated 446-foot shot on a 3-2 offering, Stanton fell to the ground after being brushed back with a pitch.
A.J. Ramos relieved Alvarez and issued three consecutive walks in the eighth. Mike Dunn walked Sandoval with the bases loaded and Andres Torres had an RBI single to stretch the Giants' lead to 6-2.
NOTES: Giants 2B Marco Scutaro left the game in the sixth with a tight lower back. ... Belt went 0 for 2, snapping his career-long hitting streak at 11 games. ... Marlins 3B Placido Polanco was given the day off after getting hit in the head by a pitch during Friday's game. "It looks like he's going to be OK," Marlins manager Mike Redmond said. "Today is a day he just kind of takes it easy. Maybe he'll feel better (Sunday). He definitely dodged one there and I'm glad he's OK." ... Former Giants pitcher Guillermo Mota received his World Series ring before the game. "It's unbelievable," Mota said. "I just get excited when I see that ring. It's better than the last one." Mota, 40, has aspirations of returning to the Giants next season and believes he has two years left. ... Giants CF Angel Pagan (hamstring) went 0 for 1 for the rookie-level Giants on Friday in his first rehab assignment. "It went fine," Giants manager Bruce Bochy said. "He's going to go five innings (Saturday), he had a couple of at-bats and had a lot of plays out in the outfield and is moving around well. First game went well for him." ... San Francisco LHP Madison Bumgarner (11-7, 2.73 ERA) will pitch Sunday's series finale against Miami RHP Tom Koehler (3-8, 4.62 ERA).