PHOENIX -- Arizona third baseman Jake Lamb hit a go-ahead home run in the sixth inning, and David Peralta and Paul Goldschmidt also homered in the Diamondbacks' 9-3 victory over the San Francisco Giants on Thursday at Chase Field.
Lamb hit his second homer of the season off Jeff Samardzija to give Arizona a 5-3 lead after Peralta walked and Goldschmidt singled to open the sixth. Pinch hitter Jeremy Hazelbaker capped the four-run inning with an RBI single.
A.J. Pollock had a two-run double and Peralta doubled in a run in a three-run eighth inning off Ty Blach.
Goldschmidt and Peralta had two hits and two runs as Arizona (3-1) won only the third of its past 16 home series against the Giants.
Jorge De La Rosa (1-1) pitched out of a bases-loaded situation with two outs in the top of the sixth inning for his first victory for Arizona, which is off to its best start since 2013.
Samardzija (0-1) gave up eight hits and six runs in 5 1/3 innings. He struck out nine and walked two.
Hill hit his first homer of the season with one out in the third inning.
The Giants took a 2-0 lead in the fourth inning when Brandon Belt walked, stole second and scored on Brandon Crawford's two-out single. Crawford was thrown out attempting to take second.
Peralta and Goldschmidt hit back-to-back homers leading off the fourth inning to tie the game at 2.
Hunter Pence walked with two outs in the sixth inning, took second on a passed ball and scored on Posey's double, knocking out Arizona starter Robbie Ray.
Ray gave up three runs and three hits in 5 2/3 innings. He struck out six and walked three.
NOTES: With two hits, Arizona 1B Paul Goldschmidt has 849 for his career, passing Steve Finley for second in franchise history. Luis Gonzalez is the franchise leader with 1,337. ... Giants CF Denard Span (hip) missed his third consecutive game, although he participated in baseball activity. "Our hope is he will be OK to go (Friday)," manager Bruce Bochy said. OF Gorkys Hernandez started the past three games in center. ... D-backs 2B Daniel Descales and LF Chris Herrmann made their first starts of the season. OF Jeremy Hazelbaker is the only position player on the roster who has not started, but he is 2-for-2 with two RBIs and a walk in three pinch-hit appearances.