DENVER (AP) Jake Peavy doubled twice and pitched into the sixth inning, and the San Francisco Giants beat the Colorado Rockies 7-3 on Saturday night to end a seven-game losing streak.

Angel Pagan and Gregor Blanco went deep for the Giants, who had 15 hits.

Nolan Arenado homered for the sixth straight game to set a Rockies franchise record. It matched the longest streak in the majors since Chris Davis did it with Baltimore in 2012.

More from FoxSports

Peavy (5-6) doubled and scored in a two-run fifth and then had an RBI double in the sixth to give the Giants a 5-1 lead. It was the 12th multi-hit game of his career and the first time he has doubled twice.

Chad Bettis (6-5) gave up four runs and eight hits in 4 1/3 innings.

Peavy was cruising until the sixth when the Rockies closed the gap. Jose Reyes, who had two hits and an RBI, singled and took second on an error by Blanco. Peavy struck out Carlos Gonzalez but Arenado's 36th home run made it 5-3.

Arenado tied Gonzalez for the NL lead with the homer. Nine of his home runs have come against the Giants.

Peavy allowed three runs and four hits and struck out five in 5 2/3 innings.

The Giants got the runs back in the seventh on Blanco's homer and a bases-loaded walk by reliever Scott Oberg.

Pagan hit his first home run of the year in the third. Bettis singled and scored on Reyes' triple in the bottom of the inning to make it 2-1.

SHUT DOWN

Gonzalez was 0 for 3 after homering five times in the previous three games. He had 12 RBIs in that span to reach 85, his highest total since 2012.

TRAINER'S ROOM

Giants: C Hector Sanchez left Saturday's game with a left ankle sprain. ... OF Nori Aoki was out of the lineup with concussion symptoms. Manager Bruce Bochy said Aoki notified him Saturday morning that he was feeling tired and experienced dizziness. ... INF Brandon Belt was not in the lineup due to a stomach illness. ... C Andrew Susac returned to San Francisco to have his ailing right thumb examined.

Rockies: OF Corey Dickerson (rib fracture) played seven innings in a rehab assignment with Triple-A Albuquerque. He could rejoin the team in San Diego on Monday.

UP NEXT

Giants: LHP Madison Bumgarner (16-7, 2.96) is 10-6 with a 3.09 ERA in 21 career games against the Rockies.

Rockies: RHP Yohan Flande (3-1, 4.04) has won his last three decisions. He didn't record a win in his first 24 major league appearances before notching his first June 28