After blowing a 4-2 lead in the eighth inning Sunday, the Giants scored in the 11th on a Ramiro Pena RBI-double and beat the D'backs 5-4.
Albert Suarez departed the game after six innings with a 4-2 lead, but Cory Gearrin gave up a two-run homer for notorious Giants killer Jake Lamb in the eighth inning, knotting the game up 4-4.
The D'backs took an early 1-0 lead in the second inning on a Brandon Drury RBI-double off Suarez.
Mac Williamson gave the Giants a 2-1 lead in the top of the third with a single to center, driving in Grant Green and Brandon Belt.