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
Astros scratch Justin Verlander as nightmare season continues
Oilers crush Panthers in Game 4, stay alive in Stanley Cup Final
Watch: Oilers chase goaltender Sergei Bobrovsky from Game 4
Dodgers ace leaves game against Royals due to triceps tightness
Watch: Rockies third baseman takes advantage of Pirates laziness to steal home
Pirates place young catcher on concussion IL
Watch: Game 4 of Stanley Cup Final gets off to chaotic start
Rockies 1B, former NL MVP diagnosed with internal oblique strain
NBA insider shares update on J.J. Redick's candidacy for Lakers HC job
Sam Mayer uses overtime restart to win Xfinity Series' return to Iowa
Nationals hurler DJ Herz makes impressive history in third career start
Free-agent DB Stephon Gilmore addresses playing futureĀ 
Report: Oilers open extension negotiations with veteran winger
Tiger Woods makes big admission about his U.S. Open future
Cubs P 'Mike' Imanaga continues hot start vs. Cardinals
Ravens All-Pro safety undergoes minor surgery
Kyle Larson takes pole for inaugural Cup Series race at Iowa
Maple Leafs make major change to coaching staff
Nationals sign OF/DH to minor league contract a day after release
Cubs place lefty starter on 15-day IL