Andrew McCutchen knocked in the go-ahead run in the top of the ninth inning and the Pittsburgh Pirates edged the Arizona Diamondbacks, 5-4, in the middle tilt of a three-game set at Chase Field.
McCutchen ended his night with four hits and two runs scored, Garrett Jones went 3-for-4 with a home run and Neil Walker added three hits and an RBI for the Bucs, who had lost six of seven coming in.
Jason Grilli (1-1) gave up a solo home run in the eighth, but picked up the win after Juan Cruz worked a perfect ninth to earn his first save of the season.
Willie Bloomquist, John McDonald, Jason Kubel and Chris Young all drove in runs for the Diamondbacks, who have dropped three of their last five.
Arizona was also dealt a blow to its outfield when Young crashed into the center field wall in the fourth inning and left the game. He will have an MRI and be evaluated further on Wednesday.
Bryan Shaw (0-2) was tagged with the loss after giving up three hits in the ninth, including McCutchen's game-winner.
Pittsburgh struck first with a run in the top of the first as McCutchen ripped a two-out single up the middle and Walker followed with a single. Jones then smacked a single to bring home McCutchen and give the Pirates the early lead.
The D-Backs answered right back with a pair of runs in the home half of the first. Young ripped a line drive double to left and scored on a single by Miguel Montero to tie the game at one, and Kubel then smashed a double to deep center to bring home Montero.
Aaron Hill worked a one-out walk in the Arizona second and stole second base before coming around to score on a double to deep right field by Bloomquist to extend the D-Backs lead to 3-1.
The Bucs answered with a pair of runs in the third when McCutchen slapped a two-out single and moved to second on a balk. Walker then brought home McCutchen with a single up the middle, and Jones followed with a double to score Walker.
Jones led off the Pirates sixth with a monster shot over the right field wall to give Pittsburgh a 4-3 edge, but John McDonald answered with a solo homer in the eighth to tie it at four for Arizona.
Diamondbacks starter Ian Kennedy gave up four runs on eight hits and no walks while striking out five in six innings, while Pirates starter Jeff Karstens left the game after giving up two runs on three hits in just one inning of work... Arizona has scored 16 runs in the first inning of games this season while allowing just four...Diamondbacks' outfielder Justin Upton missed the game due to a jammed thumb...Pittsburgh's 3-4-5 hitters went a combined 10- for-14 with five RBI.