David Peralta slapped a bases-loaded single through the right side of the infield with one out in the ninth inning to push the Arizona Diamondbacks past the streaking Oakland Athletics 4-3 on Monday night.

The Diamondbacks won their fifth straight game and are above .500 for the first time this season. They needed the ninth-inning rally after blowing a late lead.

More Images
Arizona Diamondbacks starting pitcher Zac Gallen (23) throws against the Oakland Athletics during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

David Peralta slapped a bases-loaded single through the right side of the infield with one out in the ninth inning to push the Arizona Diamondbacks past the streaking Oakland Athletics 4-3 on Monday night.

Oakland Athletics starting pitcher Chris Bassitt throws against the Arizona Diamondbacks during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Ahmed quickly made up for his mistake, smacking a leadoff double to left field to start the decisive ninth-inning rally. Kole Calhoun went down on strikes for the first out, Ketel Marte followed with a single and the A's intentionally walked Starling Marte to load the bases.

Oakland Athletics' Robbie Grossman throws his glove at the baseball trying to stop a double hit by Arizona Diamondbacks' Eduardo Escobar during the second inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Gallen gave up three hits — including Robbie Grossman's solo homer in the seventh. He struck out eight, walked one and left with a 3-1 lead.

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland's Chris Bassitt gave up three runs over 5 1/3 innings, striking out three and walking three.

The Arizona Diamondbacks grounds crew cheer during the second inning of a baseball game against the Oakland Athletics Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The A’s will be eager to have CF Ramon Laureano back in the lineup Tuesday after he completed his four-game suspension by sitting out Monday’s series opener. Laureano had his penalty reduced from six games to four via appeal for his role in a benches-clearing brawl with the rival Houston Astros on Aug. 9 in Oakland.

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Athletics: Right-handed reliever Burch Smith had an MRI on his strained right forearm that revealed no structural ligament damage, a relief to everybody given he has had a previous Tommy John surgery. Melvin said Smith won't throw for at least two weeks and isn’t sure whether he'll pitch again in the abbreviated 2020 season. ... LHP A.J. Puk, yet to pitch this season because of a strained shoulder, threw a 30-pitch bullpen using all his pitches at the club’s San Jose alternate site. He will likely throw again Wednesday.

Arizona Diamondbacks' Ketel Marte fields a ground out hit by Oakland Athletics' Matt Chapman during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Athletics: Oakland wraps up the quick two-game series by sending RHP Frankie Montas (2-1, 1.57 ERA) to the mound.

Arizona Diamondbacks' Nick Ahmed loses the ball for an error off the bat of Oakland Athletics' Matt Olson during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. One run scored on the error. (AP PhotoMatt York)

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Oakland Athletics' Vimael Machin (39) scores on a sacrifice fly by teammate Matt Chapman as Arizona Diamondbacks catcher Carson Kelly looks on during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland Athletics' Vimael Machin (39) scores on a sacrifice fly by teammate Matt Chapman as Arizona Diamondbacks catcher Carson Kelly looks on during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The A’s trailed 3-1 going into the eighth but came back to tie it after loading the bases with one out. Matt Chapman knocked in one run with a sacrifice fly to deep right field and then Gold Glove shortstop Nick Ahmed committed a stunning error on Matt Olson’s shallow pop fly to left, dropping the ball and allowing the tying run to score.

Arizona Diamondbacks starting pitcher Zac Gallen (23) throws against the Oakland Athletics during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Arizona Diamondbacks starting pitcher Zac Gallen (23) throws against the Oakland Athletics during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Ahmed quickly made up for his mistake, smacking a leadoff double to left field to start the decisive ninth-inning rally. Kole Calhoun went down on strikes for the first out, Ketel Marte followed with a single and the A's intentionally walked Starling Marte to load the bases.

That matched left-handed reliever Jake Diekman against the left-handed-hitting Peralta and the cleanup batter took a few weak swings while quickly falling behind in the count. The game-winning swing wasn't much better, but he reached across the plate and flipped the ball through the right side of the drawn-in infield.

Arizona starter Zac Gallen took a no-hitter into the sixth in his 20th career start. Austin Allen’s single with one out was Oakland’s first hit and Marcus Semien followed with an infield single, but Gallen got out of the jam by striking out Tony Kemp and Chapman.

Oakland Athletics starting pitcher Chris Bassitt throws against the Arizona Diamondbacks during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland Athletics starting pitcher Chris Bassitt throws against the Arizona Diamondbacks during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Gallen gave up three hits — including Robbie Grossman's solo homer in the seventh. He struck out eight, walked one and left with a 3-1 lead.

Oakland entered with a big league-best 16-6 record and had won 13 of its past 15 games. The Diamondbacks had been on a roll, too, winning four straight and eight of 11 to reach .500 for the first time since opening day.

Peralta homered in the third to give the Diamondbacks a 1-0 lead. He also started a rally in the sixth with a leadoff double. He scored on a fielder's choice after Kemp's throw to the plate on Eduardo Escobar's chopper was late. Carson Kelly added an RBI single to push the D-backs ahead 3-0.

Oakland Athletics' Robbie Grossman throws his glove at the baseball trying to stop a double hit by Arizona Diamondbacks' Eduardo Escobar during the second inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland Athletics' Robbie Grossman throws his glove at the baseball trying to stop a double hit by Arizona Diamondbacks' Eduardo Escobar during the second inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland's Chris Bassitt gave up three runs over 5 1/3 innings, striking out three and walking three.

Stefan Crichton (2-0) earned the win with a scoreless inning of relief. Joakim Soria (1-1) gave up Ahmed's double to start the ninth.

LAUREANO SET FOR RETURN

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The A’s will be eager to have CF Ramon Laureano back in the lineup Tuesday after he completed his four-game suspension by sitting out Monday’s series opener. Laureano had his penalty reduced from six games to four via appeal for his role in a benches-clearing brawl with the rival Houston Astros on Aug. 9 in Oakland.

“It’ll be nice to get him back. He’s going crazy,” manager Bob Melvin said, noting Laureano is spending way too much time in the manager’s office.

TRAINER'S ROOM

The Arizona Diamondbacks grounds crew cheer during the second inning of a baseball game against the Oakland Athletics Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The Arizona Diamondbacks grounds crew cheer during the second inning of a baseball game against the Oakland Athletics Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Athletics: Right-handed reliever Burch Smith had an MRI on his strained right forearm that revealed no structural ligament damage, a relief to everybody given he has had a previous Tommy John surgery. Melvin said Smith won't throw for at least two weeks and isn’t sure whether he'll pitch again in the abbreviated 2020 season. ... LHP A.J. Puk, yet to pitch this season because of a strained shoulder, threw a 30-pitch bullpen using all his pitches at the club’s San Jose alternate site. He will likely throw again Wednesday.

Diamondbacks: LHP Madison Bumgarner threw a 46-pitch bullpen. Manager Torey Lovullo said the session went well and “he's exactly where we thought he would be.” Lovullo said no decision had been made about when Bumgarner will be activated from the injured list. ... The team called up RHP Yoan López and 1B/DH Kevin Cron and sent RHP Joel Payamps and utility man Andy Young to the team's alternate training site.

UP NEXT

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

The Arizona Diamondbacks and the Oakland Athletics compete during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Athletics: Oakland wraps up the quick two-game series by sending RHP Frankie Montas (2-1, 1.57 ERA) to the mound.

Diamondbacks: Arizona goes with RHP Luke Weaver (0-3, 11.85), who has pitched just 13 2/3 innings this season in four starts.

AP Baseball Writer Janie McCauley contributed to this report.

Arizona Diamondbacks' Ketel Marte fields a ground out hit by Oakland Athletics' Matt Chapman during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Arizona Diamondbacks' Ketel Marte fields a ground out hit by Oakland Athletics' Matt Chapman during the first inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Arizona Diamondbacks' Nick Ahmed loses the ball for an error off the bat of Oakland Athletics' Matt Olson during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. One run scored on the error. (AP PhotoMatt York)

Arizona Diamondbacks' Nick Ahmed loses the ball for an error off the bat of Oakland Athletics' Matt Olson during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. One run scored on the error. (AP PhotoMatt York)

Oakland Athletics' Vimael Machin (39) scores on a sacrifice fly by teammate Matt Chapman as Arizona Diamondbacks catcher Carson Kelly looks on during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)

Oakland Athletics' Vimael Machin (39) scores on a sacrifice fly by teammate Matt Chapman as Arizona Diamondbacks catcher Carson Kelly looks on during the eighth inning of a baseball game Monday, Aug. 17, 2020, in Phoenix. (AP PhotoMatt York)