MIAMI (AP) Pablo Lopez came through with a strikeout when he needed it most, and the Miami Marlins won a close game for a change to complete their first sweep of the season.

Lopez fanned Carson Kelly with two on to end the fifth inning, and four relievers completed a five-hitter to help beat the Arizona Diamondbacks 3-1 on Thursday night.

The score was 1-all when a double and an error brought Kelly to the plate.

''The biggest at-bat of the night,'' Lopez said. ''My pitch count was high. You just want to go at the guy with everything you've got and empty the tank there.''

Adam Duvall hit a tiebreaking homer in the seventh, and the Marlins (14-16) improved to 4-11 in games decided by less than three runs.

''If we continue doing things the right way, the results are going to show,'' Lopez said. ''We're in these games, and we have a team full of guys who can make something happen really quick. Things are going to start snowballing.''

The Diamondbacks came into the series second in the majors in runs but were outscored 20-4 in the three games.

''We were playing very good baseball, and we got beat,'' manager Torey Lovullo said. ''The pitching shut us down. For three days we didn't play our brand of baseball. We know that, and it's up to us to get the worm turned.''

Miguel Rojas led off the first inning with his first home run for the Marlins, but Madison Bumgarner retired the next 17 batters.

Bumgarner was hit on the right wrist by a 92 mph pitch in the second inning but was unfazed. Instead, the left-hander struck out the next five batters he faced.

X-rays after the game were negative.

''It's a little swollen,'' Bumgarner said. ''There's no great amount of pain.''

''There was a little bit of a scare there,'' Lovullo said.

Duvall greeted J.B. Bukauskas (1-1) with his sixth homer for a 2-1 lead, raising his batting average to .200. Miami added another run on two singles and Chad Wallach's sacrifice fly.

''J.B. made some mistakes over the plate, and that was the difference in the game,'' Lovullo said.

The Marlins won with five hits.

Lopez allowed only an unearned run in five innings. He remained winless this season despite an ERA of 2.04 in seven starts.

Dylan Floro (2-1) pitched a perfect seventh, and Yimi Garcia worked around a two-out single in the ninth for his fifth save in six chances.

Miami came into the game fifth in the majors in ERA.

''Our pitching has been really good all year long,'' manager Don Mattingly said. ''And the bullpen in the last 10 days has come together where everybody is throwing good.''

Bumgarner allowed one run in six innings. He has an ERA of 1.17 in his past four starts, including a seven-inning complete game when he held the Atlanta Braves hitless, and his season ERA is now 4.91.

Rojas' error at shortstop in the second led to an unearned run, which scored on Pavin Smith's two-out double.

WEB GEM

Magneuris Sierra came off the Miami bench and made a leaping catch at the 387-foot sign in center field to rob Asdrubal Cabrera of extra bases in the seventh.

''I thought the ball was out of the ballpark when it was hit,'' Mattingly said.

UP NEXT

Diamondbacks: RHP Zac Gallen (1-1, 3.48 ERA) is scheduled to start Friday to begin a three-game series at the New York Mets.

Marlins: LHP Trevor Rogers (3-2, 1.91), the NL rookie of the month for April, pitches Friday to begin a three-game series against Milwaukee.

---

More AP MLB: https://apnews.com/hub/MLB and https://twitter.com/AP-Sports

---

Follow Steven Wine on Twitter: https://twitter.com/Steve-Wine

Copyright 2024 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.