MIAMI (AP) Robbie Ray looked like he was in All-Star form while making his first start in nearly two months.
''That was about as good as it could have been,'' Ray said.
Ray (3-0) allowed two hits and issued two walks.
''I know there was one inning where his pitch count climbed, but aside from that I know it was vintage Robbie Ray,'' Diamondbacks manager Torey Lovullo said.
Ray struck out six while throwing 56 of his 83 pitches for strikes in his first game since April 29. Ray had been on the disabled list with a strained right oblique.
''He turns into a different animal the day that he is starting and I saw it throughout his entire outing so it's good to have him back,'' Lovullo said.
Ray has won a career-long nine consecutive decisions over his last 15 starts since Aug. 24, 2017.
Daniel Descalso homered and Deven Marrero knocked in a run for the Diamondbacks, who have won six of seven.
Brad Boxberger allowed Starlin Castro's leadoff homer in the ninth and walked the ensuing batter before retiring the next three for his 19th save in 23 chances.
Wei-Yin Chen (2-5) allowed one run and five hits in six innings for the Marlins.
''I pitched well, but the pitcher on the other side pitched better than me,'' Chen said through a translator. ''He was successful in putting down our offense.''
Miami was held to just three hits.
The Marlins threatened in the fourth when Ray issued walks to the first two batters, but he calmly retired the next three, including the final two on strikeouts.
''I'm pretty tough on myself so I just took a step off the mound and told myself that, `You're better than this, you shouldn't be walking these guys, make them put it in play like you have been, get back in the zone, and get your outs,''' Ray said. ''And I was able to get my focus back and get out of it.''
Ketel Marte doubled to lead off the fifth and scored on Marrero's base hit.
Descalso hit a pinch-hit home run to lead off the eighth off Adam Conley in a battle of lefties. It was his sixth career pinch-hit homer and his ninth home run of the season.
''I don't care if it's righty, lefty, my job is to go up there and get a hit,'' Descalso said. ''I feel like I've always had a pretty good approach against lefties. Conley is a tough lefty, his numbers are really good, but he fell behind there 2-0 and I was looking for something over the middle and he left a fastball that I could handle pretty easily.''
Castro's homer was his fifth of the season and second in as many days.
''He always gets his hits,'' Marlins manager Don Mattingly said. ''We saw a little bit of power the last two nights. Hopefully, he can keep riding that.''
HIRANO TIES CLUB RECORD
Arizona's Yoshihisa Hirano pitched one inning of relief and extended his scoreless game streak to 24, tying a club record set by J.J. Putz in 2012 and Brandon Lyon in 2008.
ANDERSON EXTENDS STREAK
Marlins rookie Brian Anderson walked in the fourth to extend his career-best, on-base streak to 24 games. That's the longest active streak in the National League.
Diamondbacks: C Alex Avila (hamstring) was placed on the 10-day disabled list retroactive to June 24. ''He's felt it for a while, but it was the game in Pittsburgh where it really jumped up on him and it became uncomfortable,'' Lovullo said. ... OF Steven Souza (pectoral) is 3 for 9 with a double and an RBI in two rehab assignment games with Single-A Visalia.
Marlins: C J.T. Realmuto (wrist) missed his third consecutive game. ''He took some swings, still a little sore,'' Mattingly said. ''I talked to him before that if he's feeling anything in there at all, I don't want him swinging. That's the one thing with hands and hitters, you start changing things and the next thing you know we're going to be in an 0-for-20 (slump) or something, so we need to make sure he's feeling like he can be himself. He was feeling it still at the finish of his swing. Better today than yesterday, but still not where we're willing to take a chance.''
Diamondbacks: RHP Zack Greinke (7-5, 3.66 ERA) will start the fourth and final game of the series on Thursday. Greinke is 5-0 with a 1.77 ERA in five starts at Marlins Park.
Marlins: RHP Trevor Richards (2-4, 4.91) is coming off a win at Colorado in which he tossed six innings and allowed one run with eight strikeouts.
Copyright 2018 by AP. Any commercial use or distribution without the express written consent of AP is strictly prohibited.