This was the type of clutch moment the Dodgers had in mind for Hanley Ramirez.
It's what Ramirez sought too, after being traded to the Dodgers from the Miami Marlins recently.
"When you're playing in front of your crowd, and you hear that noise, that moment right there pumps you up," Ramirez said. "That's something that I was looking for in coming here to Los Angeles."
Ramirez lined a walk-off single Sunday to drive in Matt Kemp and lead the Dodgers past the Chicago Cubs, 7-6, giving the Dodgers a sweep of the three-game series.
San Francisco also won, so the Dodgers remained half a game behind the first-place Giants in the National League West.
Ramirez ended the seesaw game with his hit against reliever Shawn Camp (2-5) in front of 42,495 at Dodger Stadium.
"When I got up to home plate, I was trying to just be nice and easy and look for a pitch," Ramirez said.
In the sometimes quirky ways of baseball, closer Kenley Jansen (5-3) got the win even though, in the ninth inning, he blew the save that would have precluded the need for Ramirez's heroics.
With the Dodgers leading, 6-5, Jansen threw a 1-and-0 pitch that Anthony Rizzo hit into the Cubs' bullpen in right field to tie the score.
The teams swapped the lead several times after starters Joe Blanton of the Dodgers and Justin Germano gave up two runs apiece.
Blanton pitched six innings. Germano, a journeyman pitcher making his second start for Chicago, lasted 51/3 innings.
Blanton, making his Dodgers debut after being traded from the Philadelphia Phillies, gave up a run in the first inning and a solo home run to Welington Castillo in the sixth inning.
"I felt like I kept the ball down, except for the one mistake [to Castillo]," Blanton said. "That's what I've been trying to focus on lately, is missing down."
The Dodgers took a 6-5 lead in the seventh inning when Andre Ethier, facing James Russell, doubled to drive in Kemp and Mark Ellis.
Ethier had been somewhat in a drought in terms of runs batted in, having collected only three RBIs between July 15 and Sunday. His 63 RBIs still lead the Dodgers.
In the seventh inning, the Cubs jumped ahead, 5-4, when Alfonso Soriano hit a two-run double against Javy Guerra.
And in the sixth inning, the Dodgers took a 4-2 lead when they loaded the bases without a hit and Luis Cruz hit a two-run single against Scott Maine.
The Dodgers' sweep extended their recent pattern of either sweeping a series or being swept. Before the Cubs arrived, the Dodgers won three consecutive games from the Giants, then lost three in a row to the Arizona Diamondbacks.