Pablo Sandoval singled home the winning run with one out in the bottom of the 11th inning a day after driving in five runs, sending the San Francisco Giants to a 2-1 victory over the Chicago Cubs on Monday night.
Brandon Crawford loaded the bases when he was intentionally walked by Pedro Strop to bring up Sandoval, who hit a sharp single to left against a five-man infield.
Andrew McCutchen and Brandon Belt started the rally with consecutive one-out singles off Steve Cishek (2-1), who entered with one out in the 10th and immediately gave up Hunter Pence's triple before working out of trouble.
Ty Blach (6-5) pitched a 1-2-3 11th for the win.
The Giants came through an inning after missing a big chance with Pence on third. Pinch-hitter Chase d'Arnaud struck out with the Cubs playing with five infielders, making him 0 for 16 in his last nine games. Then Steven Duggar also struck out.
Ben Zobrist hit a two-out double in the ninth off Will Smith but David Bote then grounded out.
A day after the Giants scored 13 runs, they needed every last chance.
Alen Hanson tied the game in the fifth when he blazed around the bases to score from first on Anthony Rizzo's second error of the inning. The ball skipped by the first baseman and rolled past the visitor's bullpen in right-field foul territory. The speedy Hanson slid headfirst with his left hand touching home before catcher Willson Contreras could tag him.
Cubs right-hander Kyle Hendricks struck out eight and pitched into the ninth as manager Joe Maddon got a pair of relievers up in the bullpen. After Brandon Belt drew a one-out walk, Hendricks' night was done and he gave way to Randy Rosario.
Hendricks is winless in four starts since beating the Cardinals on June 16.
Giants starter Andrew Suarez has allowed two or fewer runs in each of his last six outings. He gave up one run on three hits, struck out five and walked four in six innings.