PHOENIX -- Andrew McCutchen drove in two of Pittsburgh's season-high five runs and the Pirates used a dominant relief effort to beat Arizona, 5-3, in the first game of a three-game series Monday.
McCutchen doubled in a run in a three-run first inning and added a sacrifice fly in the fifth before Garrett Jones hit a bases-empty home run in the eighth, only the Pirates' second home run of the season.
Emergency reliever Jeanmar Gomez got the victory, and left-hander Justin Wilson pitched to the minimum nine batters in his three innings of relief as the Pirates (2-5) broke a four-game losing streak.
Wilson hit a batter with one out in the seventh inning but got out of it on a double-play grounder. He has not given up a hit in five innings this season, and his fastball was clocked at 97 mph on the stadium radar gun.
Arizona first baseman Paul Goldschmidt extended his hitting and RBI streaks to five games apiece with a double in the second inning and a sacrifice fly in the third, and Wil Nieves had two hits and an RBI.
The D-backs (5-2) set a franchise record with 71 hits in their first six games of the season while trying their career-best start, but they did not get a hit after the fourth inning to break a four-game winning streak.
The Pirates, who had scored eight runs in their first six games, jumped on Arizona starter Trevor Cahill for three runs in the first inning. Starling Marte singled to open the game and scored on McCutchen's one-out double. Travis Snider singled in the last two runs after consecutive two-out walks loaded the bases.
Nieves singled in Goldschmidt with two outs in the second inning, and the D-backs tied it in the third after left hamstring tightness forced Pirates starter Wandy Rodriguez out of the game with one out and one on in the third.
Alfredo Marte (no relation) singled in the tying run with his first major league hit after Goldschmidt drove in the first run with a sacrifice fly off Gomez.
Starling Marte tripled and scored on McCutchen's sacrifice fly to make it 4-3 in Pittsburgh's favor in the fifth.
NOTES: Pittsburgh's Rodriguez has 86 regular-season victories since the beginning of the 2005 season, second among National League left-handers to Philadelphia's Cole Hamels (91). Rodriguez, who joined Pittsburgh at the 2012 trading deadline after spending 7 1/2 seasons in Houston, led NL lefties with 1,388 1/3 innings in that span. ... The D-backs' three-game weekend sweep in Milwaukee was their first there in a series of at least three games. It also was the D-backs' first sweep of their initial road trip of a season. ... Pirates infielder Brandon Inge (right scapula) was 0-for-3 for Class AAA Indianapolis while playing third base Monday after hitting a home run and a single while playing second base in a rehab game at Class AAA Indianapolis on Sunday. Inge is eligible to return from the disabled list Wednesday. ... D-backs catcher Miguel Montero was held out of the starting lineup for the first time this season, with Nieves taking over against lefty Rodriguez. "I think it's being smart," D-backs manager Kirk Gibson said.