Jasen Vinlove-USA TODAY Sports

Pablo Lopez won his first game this month, allowing no earned runs in seven innings while leading the host Miami Marlins to a 7-4 victory over the Colorado Rockies on Wednesday night.

Miami also got two-run homers from Garrett Cooper and Jazz Chisholm Jr. Jorge Soler added a solo blast.

Cooper is hitting .313 with five homers. Chisholm, who is leading National League second basemen in All-Star balloting, had a game-high three RBIs, and he has 14 homers and 11 steals this season. Soler has 13 dingers.

Lopez (5-3) allowed four hits, three walks and one unearned run. He threw 107 pitches and retired six batters by strikeout.

After going 3-0 with a 0.39 ERA in April, Lopez entered Wednesday with an 0-1 record and a 6.48 ERA in June. But he is now 3-0 in four career starts against Colorado.

Chad Kuhl (4-5) took the loss, allowing six hits, two walks and four runs in five innings. He is 0-5 in seven career games against Miami.

Austin Gomber, removed from Colorado's rotation this week, pitched in relief for the first time this year, allowing three runs in 1 2/3 innings.

Colorado opened the scoring in the first as Yonathan Daza hit a leadoff double, advanced on Lopez's throwing error on a pickoff attempt and scored on Charlie Blackmon's sacrifice fly.

Miami batted around during a 40-pitch third inning, taking a 4-1 lead on Jon Berti's RBI triple, Chisholm's run-scoring single and Cooper's two-run homer. The 40-pitch inning tied Kuhl's career high.

In the seventh, Chisholm hit his homer to the upper deck in right, a blast estimated at 414 feet. Soler hit his homer three pitches later, a shot to center that traveled 403 feet.

With one out in the ninth, Elias Diaz slugged a three-run homer, closing Colorado's deficit to 7-4.

But the Marlins, who have won two straight games, held on from there, improving to 17-14 at home.

Colorado, which has lost two straight, fell to 11-20 on the road.

The Marlins will go for the sweep on Thursday afternoon in a battle of left-handers: Miami's Braxton Garrett (1-2, 4.85 ERA) against Colorado's Kyle Freeland (3-5, 4.46 ERA).

More must-reads:

TODAY'S BEST
Former NBA star to become owner of overseas expansion team
Dodgers' two-time All-Star shut down after rehab setback
Kylian Mbappe to continue incredible career with Real Madrid
49ers expected to sign productive pass-catcher from NFC East
Luka Doncic looking to make history as a star in NBA Finals
Suns expected to retain key swingman
Report: Astros RHP may require season-ending surgery
Report: Padres infielder facing lifetime ban for betting on baseball
Bucks looking to pilfer Celtics coaching staff?
Cavaliers granted permission to interview Timberwolves assistant
Watch: One play that epitomizes the athleticism of the late Larry Allen
Report: Mariners to sign former Nationals top prospect
Are the Washington Commanders considering another name change?
Veteran safety to try out for Chargers as part of comeback attempt
Orioles designate recently acquired right-hander for assignment
Chennedy Carter's coach addresses flagrant foul on Caitlin Clark: 'Not appropriate'
Talks between Cowboys, WR CeeDee Lamb expected to pick up
Orioles to promote versatile prospect
Team Penske exec says team 'never lost faith' in Austin Cindric amid winless streak
Former All-Star feels Stephen Curry is 'not a generational talent'