Torres added a two-run homer and Juan Uribe had three hits and drove in four runs for San Francisco, which is putting pressure on NL West-leading San Diego by winning six of its last seven games. Buster Posey extended his hitting streak to 21 games for the Giants, who won despite blowing a 9-2 lead after six innings.
Dan Uggla homered for the sixth time in as many games and tied the contest with an RBI double with two outs in the ninth inning. He has 143 homers for his career, tying the Marlins team record set by Mike Lowell. Pinch-hitter Donnie Murphy added a three-run homer and Ronny Paulino clubbed a solo shot for the Marlins.
Hanley Ramirez singled and Logan Morrison doubled with one out in the ninth inning. A groundout by Gaby Sanchez scored Ramirez with two outs. Uggla, facing a 3-2 count against closer Brian Wilson, slugged a ground-rule double to the gap in left-center field. Pinch-hitter Wes Helms struck out swinging to end the inning.
The Giants had a rally thwarted in the bottom of the ninth after putting two men on base, but capitalized in the 10th against Clay Hensley (1-4). Aaron Rowand singled to left field and Edgar Renteria followed by hitting a ball that bounced off the chest of third baseman Murphy. Nate Schierholtz singled sharply to right field and Torres followed by taking the first pitch deep to left-center field to end the game.
Jonathan Sanchez was charged with seven hits and five runs over six-plus innings, but fanned seven batters in the start for the Giants. Chris Ray (2-0) picked up the victory by retiring the side in order in the top of the 10th.
Florida's Alex Sanabia was shelled for nine hits and seven runs over two-plus innings.
The Giants totaled six hits in the first inning, including RBI singles from Aubrey Huff and Rowand, and a two-run base hit from Uribe.
Morrison doubled in Ramirez in the third, but the Giants got a two-run triple from Uribe in the bottom of the frame, and he then scored on a Jorge Sosa wild pitch.
Paulino homered in the fourth, but Torres went deep in the sixth to provide the 9-2 margin.
Murphy homered off Sanchez in the seventh, and Uggla went deep against Denny Bautista later in the inning to get the visitors within 9-7.
The Giants have won 18 games so far this month and with two more victories, they'll have their first 20-win month since September 2000...Posey's streak is the second-longest by a rookie in San Francisco-era history behind Hall of Famer Willie McCovey's 22-gamer in 1959. Benito Santiago holds the major league rookie record for hitting safely in 34 straight games in 1987. The longest consecutive game hitting streak in San Francisco era history (since 1958) is held by Jack Clark, who hit safely in 26 games in 1978...San Francisco swept a three-game set from the Marlins earlier in the year and has won seven of the last nine meetings in the series.