PHOENIX (AP) - Zack Greinke pitched seven strong innings and helped himself with two hits, pinch-hitter David Peralta connected for a three-run homer and the Arizona Diamondbacks beat the San Diego Padres 8-4 Sunday to stop a four-game losing streak.
The Padres had won four in a row.
Peralta, out of the starting lineup for the first time this season, came up with two outs in the sixth against reliever Matt Wisler. Peralta's opposite-field home run curled over the fence in left and into the Arizona bullpen for a 6-2 lead. It was Peralta's first career pinch-hit homer.
Greinke (2-1) allowed two runs and four hits with six strikeouts. He won despite surrendering his seventh and eighth home runs of the season.
A good hitter, Greinke doubled, singled and scored twice.
Ketel Marte and Christian Walker also homered for the Diamondbacks.
Manuel Margot led off the game with a home run and Fernando Tatis Jr. also connected for NL West-leading San Diego. The 20-year-old Tatis homered for the second straight day and has five in his rookie season.
Padres starter Eric Lauer (2-2) gave up three runs on eight hits over five innings.
Greinke led off the bottom of the third with a bloop single and two outs later came home on Marte's homer. Greinke made a nice defensive play in the fourth, starting a double play on a comebacker.
Greinke doubled in the fifth, took third on a wild pitch and scored when Ildemaro Vargas grounded a one-out double past first base.