Giancarlo Stanton blasted a pair of homers and collected four RBIs as the Marlins avoided the four-game series sweep in a 6-4 comeback victory over the Cubs on Sunday afternoon in front of 19,817 at Marlins Park.

Trailing, 3-2, in the sixth inning after collecting just one hit, the Marlins worked a two-out rally to take a 4-3 lead.

Juan Pierre sent a liner to left for a one-out hit off Cubs right-hander Carlos Villanueva, who had retired 14 of the previous 15 batters. Pierre then stole second -- his sixth steal of the season.

After Chris Coghlan struck out looking, the Cubs elected to pitch to Stanton -- who hit a two-run homer in the first inning -- with first base open. Though Stanton fell behind 0-2, he worked the count even before driving an RBI single to left. He advanced to second on Alfonso Soriano's throw home.

Villanueva intentionally walked Greg Dobbs. Donovan Solano smoked a ball that went over Starlin Castro's glove at short, driving in the go-ahead run. Castro leaped for the ball, but it went off his glove. It was initially ruled an error.

Nick Green added an insurance run in the seventh with a solo homer off right-hander Kameron Loe -- the infielder's first dinger since Aug. 10, 2009.