San Francisco, CA – Adrian Gonzalez led off the ninth inning with a triple and scored the go-ahead run on Hanley Ramirez's double as the Los Angeles Dodgers fought back for a 3-2 win over the NL West-leading San Francisco Giants on Saturday.
The Dodgers had lost three straight games, including Friday's series-opener, and trailed 2-1 in the eighth when pinch-runner Alex Castellanos scored the tying run on a wild pitch by Matt Cain.
Ronald Belisario (5-1) worked around a pair of walks in the bottom half and Gonzalez began the ninth with his first triple of the season before Ramirez lined a double to center off Jeremy Affeldt (1-2).
Brandon League allowed Gregor Blanco's two-out double in the home half before lining out Hector Sanchez to pick up his second save of the season.
The Dodgers, who announced earlier Saturday that All-Star Matt Kemp will miss at least the rest of the series to undergo an MRI on his left shoulder, now trail the Giants by 4 1/2 games in the division.
"It gives us a chance to win the series," Dodgers manager Don Mattingly said of Saturday's result. "It's kind of a life line for us, trying to win a series...pick up a game."
Buster Posey went 2-for-3 with a double and an RBI in the loss.
Cain, in his first start since allowing five runs in five innings against the Cubs, was charged with two runs on six hits over 7 1/3 frames.
Chris Capuano countered with a seven-inning start and gave up two runs on five hits. He also singled and scored a run.
The Giants took a first-inning lead when Marco Scutaro doubled with one down, moved up on Pablo Sandoval's single, and scored on Posey's base hit.
Capuano singled in the sixth and advanced to third base on a single by Mark Ellis before Shane Victorino lifted a game-tying sacrifice fly to center field.
Posey led off the seventh with a double to left and Hunter Pence followed with a sac bunt before Brandon Belt's one-out RBI groundout put San Francisco back on top.
Cain, though, couldn't hold the lead.
Juan Rivera began the eighth with a two-bagger, A. J. Ellis moved him up with a sac bunt, and the pinch-running Castellanos crossed home plate with the equalizer on a wild pitch.
"There's a lot of baseball left," said Giants manager Bruce Bochy. "It's gonna be a fight and we know it. That's our nature. We don't do anything easy."
Mark Ellis extended his hit streak to six games ... The Giants entered Saturday with a 5 1/2 lead in the NL West -- marking their largest lead in the division since 2003.