PHOENIX -- Pinch-hitter Cody Ross hit a three-run home run in the bottom of the eighth inning to spoil a strong start by Miami right-hander Jose Fernandez in Arizona's 3-1 victory Wednesday afternoon.
Jason Kubel and Didi Gregorius walked in the eighth before left-hander Mike Dunn entered to replace Fernandez, who gave up three singles in 7 ? innings. Ross hit a 1-2 pitch for his third homer of the year and fifth career pinch homer. He was batting for Eric Hinske, announced before the pitching change.
David Hernandez (4-4) pitched a scoreless eighth inning and Heath Bell gave up a leadoff home run to Justin Ruggiano in the ninth before finishing with his 13th save.
Before Ross' homer, the D-backs did not have a hit since reliever Josh Collmenter opened the third inning with an infield single. Fernandez (4-4) had retired 14 in a row before walking Kubel to open the eighth inning.
The D-backs (39-33) have won two in a row after a season-long four-game losing streak. After getting 20 hits in an 8-6 victory over the Los Angeles Dodgers on June 12, they have 14 runs and 33 hits in the last six games.
The Marlins (22-49) have lost two in a row after winning six of their previous nine. They have the worst record in baseball.
Collmenter gave up a single and a walk in six innings of relief after replacing starter Trevor Cahill in the second inning. Collmenter retired 13 in a row after issuing a two-out walk to Greg Dobbs in the second. He struck out seven.
Cahill was removed with a right hip contusion in the top of the second inning after being struck by a Marcell Ozuna line drive on the final out of the first. The ball struck Cahill and ricocheted to third baseman Martin Prado, who threw out Ozuna at first.
Cahill met with the training staff between innings and again before the start of the second inning and was replaced by Collmenter after throwing three pitches to Derek Dietrich.
The D-backs already are down two starters, with Brandon McCarthy on the disabled list with right shoulder soreness and Ian Kennedy three days into his 10-day suspension for his part in a June 11 brawl against the Los Angeles Dodgers.
NOTES: Because of an off day Thursday, Cahill will have an extra day to recover before his next scheduled start June 25 at Washington, which is the first game of a 19-game, 19-day trip that includes stops in Atlanta and New York to play the Mets. ... Marlins left fielder Juan Pierre will take a 14-game hitting streak into a four-game series at San Francisco after receiving a day off Wednesday. Pierre has eight multiple-hit games during his streak. ... Marlins right-hander Tom Koehler, who joined the rotation May 12, will start against the Giants on Thursday in search of his first major league victory. Koehler gave up nine runs in 4 ? innings in a 13-7 loss to St. Louis last Saturday. ... Collmenter became the first reliever in Arizona history to have four outings of at least four innings in one season. He pitched 5 1/3 innings against St. Louis on April 3 and four innings against the Cardinals on June 4, winning in extra innings both times.