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.

San Diego Padres Fernando Tatis Jr. (23) celebrates with Manny Machado after hitting a solo home run against the Arizona Diamondbacks in the fifth inning during a baseball game, Sunday, April 14, 2019, in Phoenix. (AP Photo/Rick Scuteri)
San Diego Padres Fernando Tatis Jr. (23) celebrates with Manny Machado after hitting a solo home run against the Arizona Diamondbacks in the fifth inning during a baseball game, Sunday, April 14, 2019, in Phoenix. (AP Photo/Rick Scuteri)

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.

Arizona Diamondbacks' Ketel Marte (4) celebrates after hitting a two-run home run against the San Diego Padres in the third inning during a baseball game, Sunday, April 14, 2019, in Phoenix. (AP Photo/Rick Scuteri)
Arizona Diamondbacks’ Ketel Marte (4) celebrates after hitting a two-run home run against the San Diego Padres in the third inning during a baseball game, Sunday, April 14, 2019, in Phoenix. (AP Photo/Rick Scuteri)

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.

PITCHER MOVES

San Diego called up RHPs Phil Maton and Luis Perdomo from Triple-A El Paso before the game and optioned right-handers Gerardo Reyes and Robert Stock to El Paso. Reyes got a win in his big league debut on Friday. Stock appeared as recently as Saturday and has pitched in seven games.

TRAINER’S ROOM

Padres: 3B Manny Machado and 1B Wil Myers weren’t in the starting lineup Sunday, with Machado missing his first game of the season. Myers pinch hit for Lauer in the sixth.

UP NEXT

Padres: Return home for to open a series with the Colorado Rockies on Monday, sending LHP Joey Lucchesi to the mound. Lucchesi (2-1, 4.40 ERA) made 26 starts last season as a rookie.

Diamondbacks: Get Monday off before opening a series in Atlanta. LHP Robbie Ray (0-1, 3.52) is scheduled to start Tuesday’s opener, and he has allowed three or fewer hits in three straight starts to begin the season.

___