SAN DIEGO (AP) Cameron Maybin reached base after an overturned umpire's call, then scored on Yonder Alonso's slow grounder in the ninth inning as the San Diego Padres beat the Arizona Diamondbacks 4-3 to avoid a three-game sweep.
Maybin easily beat the throw home by first baseman Paul Goldschmidt, who was playing in with one out. Alonso entered the game during a double switch in the top of the inning.
The Padres snapped a four-game losing streak and scored their most runs in five games.
Maybin started the winning rally with a chopper to second off Oliver Perez (0-1) and was initially called out. Padres manager Bud Black challenged and the call was changed, making him 2 for 2 on the day. Rene Rivera, who earlier hit a two-run double, doubled over right fielder Gerardo Parra's head to move Maybin to third.
Huston Street (1-0) pitched the ninth for the win.
The Diamondbacks came into the series with the worst record in the majors at 9-22 and the worst ERA in the majors at 5.20.
After being held to five runs in their previous four games, the Padres scored first for the first time in five games. Chris Denorfia's two-out single in the third brought in rookie Jace Peterson, who was hit on the hand with a pitch.
That snapped a streak of 20 scoreless innings by Diamondbacks pitchers.
The Diamondbacks went ahead 3-1 in the fourth. Goldschmidt hit a leadoff homer off Tyson Ross into the sandy play area beyond the fence in right-center, his fifth. With two outs, shortstop Everth Cabrera misplayed a grounder by Cody Ross for an error. Rookie Ender Inciarte singled to left and Tuffy Gosewich brought them both in with a single to center.
The Padres tied it in their half of the inning when Rivera hit a two-out, two-run double into the left-field corner off lefty Wade Miley. After Yasmani Grandal hit into a double play, Maybin and Will Venable singled ahead of Rivera.
Ross allowed three runs, one earned, on seven hits in seven innings, struck out five and walked one.
Miley allowed three runs and six hits in seven innings, struck out four and walked one.
Black challenged a ruling that Chris Owings was safe on a grounder with two outs in the eighth. After review, Owings was called out.
NOTES: Padres 3B Chase Headley will start a rehab assignment at Class A Lake Elsinore on Monday. He's on the disabled list with a strained right calf. ... The Padres continue a 10-game homestand with a three-game series against Kansas City starting Monday night. The scheduled starters are Royals RHP Yordano Ventura (2-1, 1.50 ERA) against Padres lefty Eric Stults (1-3, 5.34). ... The Diamondbacks continue their road trip by opening a three-game set at Milwaukee. Mike Bolsinger (1-1, 5.79) is scheduled to start for the Diamondbacks against Matt Garza (1-3, 5.00).