DENVER -- Had he stayed healthy, Christian Bergman might have savored his first major league victory sooner than Sunday.

Instead, the Rockies right-hander returned from a two-month layoff , pitched into the seventh and won for the first time as Colorado beat the Miami Marlins 7-4 in the rubber game of their series.

Third baseman Nolan Arenado hit a two-run homer in the first and two batters later, catcher Michael McKenry followed with a solo shot. Second baseman DJ LeMahieu gave the Rockies breathing room with a bases-loaded double in the seventh that drove in two runs and finished the scoring.

Bergman (1-2), who worked a career-high 6 1/3 innings, gave up back-to-back doubles to left fielder Christian Yelich and second baseman Jeff Baker with one out in the seventh that cut the Rockies' lead to 5-3. Right fielder Giancarlo Stanton grounded a single to center that made it a one-run game, ending Bergman's outing at 97 pitches.

Bergman got 15 outs on balls hit in the air, 10 of which went to the outfield, in his first start for the Rockies since June 20 when, in his third career start, he was hit with a line drive and suffered a broken left (non-pitching) hand.

Bergman gave up two runs in the second when shortstop Adeiny Hechavarria tripled with one out as Charlie Blackmon lost the ball, and it fell on the warning track near the right field corner. Catcher Jeff Mathis followed with a run-scoring double, his hard-hit grounder going just inside first base and down the right field line. With two outs, Yelich, whose career-high tying 10-game hitting streak ended Saturday, singled to cut the Rockies' lead to one run.

Hand (2-6) lasted 4 1/3 innings, leaving after he walked McKenry with the bases loaded to make it 4-2. The Rockies loaded the bases with no outs when Hand walked leadoff hitter Blackmon, gave up a single to center fielder Drew Stubbs, who had three hits, and hit Arenado in the right hand with a pitch.

Brad Penny kept the inning from getting out of hand. He retired first baseman Matt McBride on a fly to short center and got shortstop Josh Rutledge to ground into a fielder's choice.

LaTroy Hawkins, the fifth Rockies pitcher, retired the side in order in the ninth and earned his 20th save in 22 chances.

NOTES: RF Michael Cuddyer (left hamstring strain) was placed on the 15-day disabled list to make room on the active roster for RHP Christian Bergman, who came off the 60-day disabled list to make his start. To make room on the 40-man roster for Bergman, RF Carlos Gonzalez, who underwent season-ending surgery Aug. 18 for left knee tendinitis, was transferred from the 15- to the 60-day disabled list. ... Rockies C Wilin Rosario was unable to hit Saturday night due to a sore left wrist. He planned to hit in the indoor cage Sunday and hoped to be ready to play Monday. ... Rockies LF Corey Dickerson hit a game-tying home run in the ninth and a walk-off single in the 13th on Saturday. According to the Elias Sports Bureau, the only other player in Rockies history to hit a game-tying homer in the ninth followed by a walk-off single is Matt Holliday in 2008. ... Marlins 2B Derek Dietrich (right wrist sprain) will continue his rehab at Triple-A New Orleans after playing five games at High Class A Jupiter and going 5-for-16 (.313) with a double, triple, home run and two RBIs. ... Marlins RHP Carter Capps (right elbow sprain) will begin a rehab assignment Monday with the Rookie level Gulf Coast Marlins.