Isaiah J. Downing-USA TODAY Sports

Elehuris Montero homered twice and drove in five runs, Connor Joe also went deep and finished with two hits and the Colorado Rockies beat the San Francisco Giants 7-4 on Friday in Denver.

Wynton Bernard added two hits for Colorado, which snapped a five-game losing streak. Jose Urena tossed 6 2/3 effective innings for the win, and Daniel Bard struck out three in the ninth for his 25th save.

Joc Pederson homered among his two hits for the Giants, who have lost three straight.

The Rockies got to San Francisco starter Alex Wood early in the game. Randal Grichuk led off the second inning with a single, and Montero followed with his first homer of the game to put Colorado ahead 2-0.

Colorado struck again in the fourth inning. Wood retired the first two batters before Joe homered to left field, his sixth of the season, and then the Rockies blew it open in the fifth.

Bernard led off with a double and Jose Iglesias also doubled to make it 3-0. Wood struck out Brendan Rodgers and got C.J. Cron to line out, but Grichuk walked to keep the inning alive.

Montero then homered to left-center field to chase Wood. It was his third long ball of the season.

Wood (8-10) allowed seven runs on seven hits and two walks with three strikeouts in 4 2/3 innings.

Urena cruised through the first five innings, allowing only a one-out single to Pederson in the first. Pederson got to him in the sixth when he hit a solo homer down the left field line to put San Francisco on the board.

It was Pederson's 18th of the season.

The Giants mounted a rally in the seventh inning with some help from Colorado pitchers. Mike Yastrzemski drew a one-out walk, and Brandon Crawford hit a two-out single to center.

Lucas Gilbreath relieved Urena and walked J.D. Davis to load the bases and then hit Joey Bart with a pitch to bring home Yastrzemski. Pinch hitter Austin Slater singled to right field to drive in two more.

Gilbreath struck out Pederson to end the threat.

Urena (2-4) allowed three runs on three hits and two walks with three strikeouts.

More must-reads:

TODAY'S BEST
Yankees star Juan Soto has eyebrow-raising comments on upcoming free agency
Draymond Green shares tone-deaf take on fines from NBA
USWNT coach Emma Hayes instilling right mindset ahead of Olympics
Winnipeg Jets officially name head coach
Injury bug bites Orioles again as another starting pitcher lands on IL
Yankees' Hal Steinbrenner under fire over Juan Soto comments
Lonzo Ball shares eye-opening details about his knee injury
Jets QB Aaron Rodgers insists focus has been football, not politics
Hurricanes general manager steps down, leaving front office in flux
Travis Kelce echoes Patrick Mahomes in response to controversial kicker
Cowboys QB Trey Lance details how he has changed since 49ers stint
Historic NCAA settlement reached allowing schools to pay players
Celtics dominate Pacers in Game 2, take 2-0 ECF lead
Cavaliers fire head coach J.B. Bickerstaff
Connor McDavid's 2OT goal gives Oilers win over Stars in Game 1
Rob Manfred hints at big change coming to MLB
Scottie Scheffler arrest case takes another weird turn with new video
QB Russell Wilson believes Steelers can 'do something special'
Pacers star suffers injury in ugly Game 2 loss
Watch: Jaylen Brown's big second quarter lifts Celtics to halftime lead