SAN FRANCISCO -- Didi Gregorius scored on a wild pitch with one out in the 11th inning and Gerardo Parra hit Santiago Casilla's next pitch into left-center field for a run-scoring double as the Arizona Diamondbacks, after blowing a 4-0 lead in the eighth and ninth innings, recovered to beat the San Francisco Giants 6-4 Tuesday night.
In snapping the Giants' seven-game winning streak at AT&T Park, the Diamondbacks extended the game when right fielder Cody Ross threw out Pablo Sandoval at the plate to end the 10th inning, then took advantage of some shoddy San Francisco defense in the 11th.
With one out in the 11th, Gregorius sliced a drive to left-center field that Andres Torres appeared to lose in the lights. Torres then hesitated throwing the ball back into the infield, allowing Gregorius to leg the hit into a double.
Casilla (2-2) then got pinch-hitter Alfredo Marte to ground to Sandoval at third base, but Brandon Belt, whose pinch-hit, two-run homer in the bottom of the ninth forced extra innings, couldn't handle a relatively simple, one-hop throw for an error that advanced Marte to third.
Casilla then uncorked a low fastball that skidded off home plate and through the legs of catcher Buster Posey for a wild pitch that allowed Gregorius to race home from third and break the 4-4 tie.
Parra then plated Marte from second with a shot to left-center, giving Arizona a two-run cushion.
Josh Collmenter, with the help of a double play grounder, pitched a 1-2-3 bottom of the 11thfor his first career save. Brad Zeigler (1-0) survived a shaky 10th to earn the win.
For the second consecutive game, the Diamondbacks blew a late two-run lead, this time when they were three outs away from sending left-hander Patrick Corbin to a third consecutive season-opening victory.
After the Giants used a Brandon Crawford triple as the centerpiece of a two-run eighth inning that knocked Corbin from the game and cut a 4-0 deficit in half, it took just two batters in the ninth to get completely even against Arizona closer J.J. Putz.
Pence greeted the right-hander with a solid double, bringing Belt to the plate as a pinch-hitter for Joaquin Arias. The Giants' regular first baseman, still batting just .197 despite a walk-off single in the ninth Monday, then connected with a two-strike Putz fastball and sent it over the pavilion beyond the right-field wall, one-hopping into San Francisco Bay.
For 7 1/2 innings, it appeared the Diamondbacks were en route to a relatively comfortable win that would even their three-game series against the defending World Series champs as Paul Goldschmidt continued to be a Giants killer with a double, home run and three RBIs, and Corbin carried a shutout into the eighth inning.
The Diamondbacks gave Corbin an immediate cushion with a two-run first inning that included a run-scoring double by Goldschmidt, then doubled their advantage when the Arizona first baseman took Matt Cain about 15 rows deep in the left-field bleachers with a two-run shot in the third.
The home run not only was Goldschmidt's seventh against the Giants -- his most against any foe -- but also was the fifth of his career in just 57 at-bats at AT&T Park. Including his run-scoring double, he had amassed 17 RBI and a .368 batting average over that span.
The Giants, who had the best record (40-19) in baseball last season against left-handed pitchers, entered the game having won five in a row against southpaws since an Opening Day loss to Dodgers ace Clayton Kershaw.
Even while suffering their first loss on a homestand that's now five games old, the Giants made it interesting in the latter stages, scoring twice in the eighth before putting the potential tying runs on base after Corbin surrendered a sharp single to the last batter he faced, Angel Pagan.
But David Hernandez, who offered up a game-tying home run to Posey on Monday night, came on with one out and won a rematch with the reigning National League Most Valuable Player, getting him to fist a weak popup to second baseman Prado.
Putz couldn't finish the job in the ninth, however, sending the game into extra innings.
NOTES: Goldschmidt entered the game with the fifth-best slugging percentage (.587) and sixth-best on-base percentage (.416) among Giants opponents with at least 75 career plate appearances against the team. ... Arizona's Ian Kennedy squares off with San Francisco's Madison Bumgarner in the series finale Wednesday afternoon, after which the Diamondbacks head home for seven in a row and the Giants take off on a six-game trip that wraps up next week in Phoenix. ... The Diamondbacks have won the series finale against all six previous opponents this season. ... A six-foot marker placed by the Giants on the brick wall beyond the fence in right-center field at AT&T Park commemorating Barry Bonds' record-breaking 756th career home run has gone missing. The club announced it is studying surveillance tapes from the past week in an effort to figure out what happened.