PHOENIX — The regression of Luke Weaver's pitching career over the past two years has been a tough thing for everybody around the Diamondbacks to explain. The nasty fastball is still there. So is the above average off-speed repertoire.

He's been given a lot of chances to get it right. He also knows there might not be many more if he doesn't improve soon.

“Enough was enough,” Weaver said.

The right-hander pitched scoreless ball into the seventh inning for his best outing in nearly a month, which helped Arizona snap a six-game losing streak with a 5-2 win over the Miami Marlins on Monday night.

Weaver (2-3) cruised though 6 1/3 innings, giving up four hits, striking out six and dominating a team that beat him a week ago in Miami.

The excellent performance might have saved his spot in the rotation. The 27-year-old has struggled for most of the past two seasons and had a 6.07 ERA over six starts this year coming into Monday's game.

“It wasn’t cutting it,” Weaver said. “We’re in a performance-driven sport and you’ve got to do your thing, show confidence in yourself and show it to your teammates and coaches.”

One of Weaver's biggest problems has been high pitch counts, which meant early exits and extra work for the bullpen. But he made quick work of the Marlins through six innings, needing just 65 pitches — 51 for strikes. He was pulled in the seventh after striking out Corey Dickerson. Taylor Clarke got the final two outs of the inning.

It was a much-needed win for the Diamondbacks, who had plunged in the standings after a terrible six-game road trip that included three-game sweeps by the Marlins and Mets. The offence scored just 12 runs the entire week.

Arizona's bats were a little better on Monday. David Peralta had a triple and a double, and Asdrubal Cabrera added a two-run double.

“I felt like we had to punch back and show what we’re capable of,” first baseman Christian Walker said. “When I think about Diamondbacks baseball, that’s what I think of, for sure.”

The Marlins scored their only runs in the eighth when Jesús Aguilar smacked a two-run homer off Joakim Soria into the left-centre seats. It was his seventh long ball of the season.

Marlins manager Don Mattingly was disappointed his lineup didn't work many deep counts against Weaver, who didn't walk a batter and never even went to a three-ball count.

“It’s got to be a tougher fight," Mattingly said. "That was too easy.”

Stefan Crichton threw a scoreless ninth for his fourth save. Right fielder Pavin Smith stole a solo homer from pinch-hitter Sandy Leon for the final out, jumping at the fence and snagging the ball just before it went over.

Jordan Holloway (1-1) took the loss in his first career start, giving up four runs over 3 2/3 innings.

The 24-year-old Holloway had been impressive in his first six big league appearances out of the bullpen, giving up six hits over 10 1/3 scoreless innings. But the Diamondbacks jumped on the right-hander quickly, with Smith and Carson Kelly igniting the offence with back-to-back doubles to open the bottom of the first.

Arizona managed just one run in the first despite loading the bases with no outs. The Diamondbacks pushed ahead 4-0 in the third when the first four batters reached base. Cabrera's double down the right-field line brought home two runs.

Walker put the Diamondbacks up 5-0 in the fifth with a two-out double.

“We could have scored some more but after grinding through a six-game losing streak, this was a great win,” manager Torey Lovullo said.

SORRY, SIERRA

The Marlins had one of their few offensive opportunities snuffed out in the sixth when Magneuris Sierra was picked off first base following his leadoff single.

The play was close and Walker might have missed the tag, but there was a problem: Mattingly didn't have another challenge because his appeal failed in the fifth.

Sierra stood on first base for a minute, looking over at Mattingly, who was leaning against the rail. Finally, the manager flipped his palms up as if asking “What do you want me to do?”

Sierra finally realized he was out of luck and trudged back to the bench.

TRAINER'S ROOM

Diamondbacks: Lovullo said OF Ketel Marte (hamstring) will be at Chase Field on Tuesday to go through some drills so the team can see his progress, especially when it comes to running. ... RHP Taylor Widener (strained groin) threw a bullpen and Lovullo said the session went well.

UP NEXT

The Diamondbacks send out LHP Madison Bumgarner (3-2, 4.91 ERA) to face Marlins RHP Pablo López (0-2, 2.04). Bumgarner has been excellent over his past four starts, giving up just three earned runs in 23 innings.

___

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