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.
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.
LHP Jose Quintana (7-6, 4.22 ERA) tries for his first career victory against the Giants after going 0-3 with a 5.82 ERA in his first three starts. He'll face RHP Johnny Cueto (3-1, 1.95) who makes his second start since coming off the disabled list from a 61-game absence with an inflamed pitching elbow.