Ron Chenoy-USA TODAY Sports

Michael Conforto homered among his three hits, Blake Sabol also had three hits, and the San Francisco Giants beat the Colorado Rockies 8-6 in Denver on Wednesday night.

Matt Chapman and Mike Yastrzemski had two hits each for San Francisco, which has won two straight after dropping four in a row.

Elias Diaz homered and singled, Sean Bouchard had three hits and Charlie Blackmon and Jordan Beck had two hits apiece for the Rockies, who have lost four in a row.

The Giants jumped on Colorado starter Peter Lambert in the second. Conforto hit the first pitch of the inning over the scoreboard in right field to start the rally. It was his sixth homer of the season.

Chapman, Yastrzemski and Heliot Ramos followed with singles to bring home another run and put runners on first and third.

Nick Ahmed reached on a sacrifice bunt, which scored Yastrzemski, Jung Hoo Lee drove in Ramos with a double and Lamont Wade Jr. followed with the sixth hit of the frame, a two-run single that made it 6-0.

Brenton Doyle got a run back for the Rockies in the second when he tripled and scored on a wild pitch, but San Francisco answered in the third on Yastrzemski's triple and Sabol's double.

Lambert (2-2) left after giving up seven runs on nine hits over three innings, and his teammates started to chip away at the deficit against starter Jordan Hicks.

Beck doubled with one out in the fifth and scored on Blackmon's single. Blackmon eventually scored on Diaz's swinging bunt to make it 7-3. Blackmon had an RBI single in the sixth after Hicks was pulled. Hicks (3-1) allowed three runs on seven hits and struck out five in five innings.

The Giants got a run back when Conforto scored from second on McMahon's throwing error on Chapman's two-out single in the seventh.

Diaz hit a two-run homer off closer Camilo Doval in the ninth, his third of the season, but Doval got Brendan Rodgers to ground out to end the game.

More must-reads:

TODAY'S BEST
Insider names frontrunner in Browns' QB competition after drafting Shedeur Sanders
Yankees offense goes nuclear in blowout win
Giannis Antetokounmpo rips Tyrese Haliburton's father for 'disrespectful' act
Celtics make unique NBA playoff history in Game 5 win
How Steelers reportedly expect Aaron Rodgers saga will end
Juan Soto's bat speed decline threatens Mets' $765 million investment
NFL team executive expands on what Browns' Shedeur Sanders did wrong before draft
Insider suggests four-time Pro Bowl option for Steelers if Aaron Rodgers doesn't sign
Watch: Pacers, Tyrese Haliburton eliminate the Bucks in OT
Stanley Cup playoffs takeaways: Hurricanes advance, panic time for Maple Leafs
Jayson Tatum's historic game helps send Celtics to Eastern Conference semis
Pirates ace Paul Skenes explains why he's not concerned about potential injuries
Steelers may have found another steal in UDFA pool as Pittsburgh lands an athletic freak
49ers sign star TE to four-year extension
Spurs' Stephon Castle runs away with Rookie of the Year Award
Kings to make Doug Christie new head coach in full-circle moment
Vikings QB J.J. McCarthy sends strong message about whether he's ready to start in 2025
Pistons' Cade Cunningham comes alive in fourth quarter to stave off elimination vs. Knicks
Cubs defeat Pirates with an impressive night at the plate
Watch: Blue Jays' Daulton Varsho makes potential catch of the year