MIAMI (AP) — Ryan Vogelsong pitched into the eighth inning to earn his career-high 10th win and the San Francisco Giants used four home runs to beat the slumping Florida Marlins 5-2 Sunday.

Cody Ross ended the Giants’ major league-record streak of 21 consecutive solo homers when he hit a two-run shot in the third inning. It was the first non-solo homer for San Francisco since July 6.

READ MORE: UPDATE: Pleasant Hill In-N-Out Burger Shut Down for Repeatedly Defying COVID Health Order

Nate Schierholtz started a new streak with a solo homer in the fourth. Brandon Belt, recalled Saturday from Triple-A, hit solo homers in the sixth and eighth.

Vogelsong (10-2) struck out eight while allowing two runs and four hits in 7 2-3 innings, lowering his ERA to 2.47.

Santiago Casilla retired Mike Stanton with two on to end the eighth. Ramon Ramirez came on to retire Brett Hayes with two on and two out in the ninth for his second save in three chances. All-Star closer Brian Wilson was unavailable because of a sore back.

The home run total tied a season high for the Giants, who rank next to last in the majors in runs. They took the series after losing their past four series.

The Marlins faced the Giants’ top three starters in the series, and the results showed—Florida totaled four runs and 15 hits. The Marlins, who have struggled at home all season, went 1-9 on their homestand.

READ MORE: Hung Jury In Trial of Danville Deputy Andrew Hall Over Laudemer Arboleda Killing; Guilty On Gun Assault

Homers accounted for all four runs off Chris Volstad (5-9), who went six innings in his first start for Florida since being demoted to Triple-A New Orleans on July 23.

Stanton hit his 26th homer with two out in the first. After Greg Dobbs followed with a single, Vogelsong retired the next 17 batters before Dobbs singled with one out in the seventh.

Emilio Bonifacio hit a two-out RBI double in the eighth for the Marlins’ other run.

Ross, playing in Miami this weekend for the first time since the Giants acquired him from Florida on a waiver claim last August, hit his ninth homer after Vogelsong walked, putting the Giants up 2-1. Schierholtz later hit his eighth homer, and Belt’s first career two-homer game gave him four home runs this season.

NOTES: The Marlins recalled INF Ozzie Martinez and selected the contract of INF Jose Lopez from Triple-A New Orleans. … Giants OF Carlos Beltran was out of the starting lineup for the sixth consecutive day with a strained right wrist. … Casilla batted for the first time in his career, and Jose Ceda walked him on four pitches. … Marlins RHP Clay Hensley, scheduled to start Monday at Colorado, has a 4-1 record and 3.07 ERA in seven career starts against the Rockies. … Giants LHP Madison Bumgarner, scheduled to start Monday at Atlanta, lasted only 2 2-3 innings and gave up four runs in a loss to the Braves on April 22. That is his only previous game against them.

(Copyright 2011 by CBSSan Francisco. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

MORE NEWS: UPDATE: Alameda County Supes Vote To Help Finance Oakland A's Stadium