PHOENIX — Pinch-hitter Pavin Smith connected for a two-run homer in the bottom of the ninth inning to lift the Arizona Diamondbacks over the San Francisco Giants 4-2 on Monday night.
Jake McCarthy got the winning rally started with a looping, one-out double down the left-field line. Smith — hitting for Eugenio Suárez — smashed a pitch from Randy Rodríguez (1-1) that barely cleared the yellow line above the wall in center.
''It's pretty crazy, the stuff you sort of dream about,'' Smith said. ''You play it in your mind almost every day.''
The Diamondbacks have won three straight, while the Giants have dropped a season-high five in a row.
Lourdes Gurriel Jr. gave the D-backs a 1-0 lead in the second with a homer off Spencer Howard, which marked the 100th longball of his career. Blaze Alexander's RBI single up the middle later in the inning scored Suárez — who reached on a triple off the wall in right-center — for a 2-0 advantage.
San Francisco's Matt Chapman hit a double in the fourth that drove in Brett Wisely, cutting it to 2-1. Heliot Ramos tied it at 2 in the seventh with a solo shot to the deepest part of the park in right-center.
The Giants threatened in the ninth, putting runners on first and third with two outs. Jorge Soler hit a bouncing ball down the third base line to Suárez, who fired high to first, but Christian Walker was able to leap into the air and grab the throw before tagging Soler just before he crossed the base.
''It's a game of inches, right?" Giants manager Bob Melvin said.