Miami is now 4-2 on the road trip, and the offense followed up a 20-hit performance on Monday with 15 hits on Tuesday.
"At first I thought we were going to get the same treatment we gave them yesterday," said Stanton of Miami's 12-3 romp on Monday. "That's the kind of stuff we did in the first half. Early in the year, we would have just gave up and lost 10-0 or 5-0 or whatever. But we fought. Everyone contributed tonight."
Stanton went 3-for-6, but he also struck out three times, including with a runner in scoring position in the eighth inning.
After belting two homers on Monday, and five in the previous five games, the 22-year-old was given a heavy diet of offspeed pitches. He told himself to slow things down and make contact.
"Stop swinging so dang hard, and just put the ball in play," Stanton said of his approach on his game-winning hit. "Even if you don't hit the ball on the barrel, put the ball in play and something good might happen."
It did, as the Marlins secured their 32nd comeback win.
Gorkys Hernandez, playing after Emilio Bonifacio was lifted in the second inning with right knee pain, reached on a chopper to the shortstop in the 10th, and he moved to second on Bryan Petersen's sacrifice bunt. Jose Reyes was intentionally walked, and Carlos Lee advanced Hernandez to third on a flyout to deep center.
Stanton slapped his decisive RBI single to left, improving Miami to 9-3 in extra innings this season.
"The way we swung the bat last night gives you a little hope," manager Ozzie Guillen said. "We swung the bats very well today. I was worried about the bullpen, because tomorrow we have a doubleheader and we cannot overuse the bullpen."
Ricky Nolasco gave up five runs (all in the first) in five innings, and Mike Dunn, Ryan Webb, Carlos Zambrano, Chad Gaudin and Steve Cishek combined to throw five scoreless innings of relief.
Cishek closed out the 10th, stranding two runners, for his 10th save.
"Obviously, you don't want to put your team down 5-0, and I don't know the last time we came back to win after a starter put the team down 5-0," Nolasco said. "But we did a great job just fighting at-bats after at-bats. The offense just picked up the team today. Nobody gave in. Nobody rolled over."
Donovan Solano had three singles and two RBIs, and he is now 8-for-18 during his five-game hitting streak.
The Marlins had chances in the seventh and eighth innings. They loaded the bases in the seventh with one out off Brad Ziegler, who worked out of it. And in the eighth inning, reliever David Hernandez issued a two-out single to Reyes and a walk to Lee. But he struck out Stanton.
"Usually you don't get another chance," Stanton said of being able to redeem himself in the 10th inning. "When you do, you better do something about it."
Heath Bell wiggled out of trouble in the eighth inning, striking out pinch-hitter Wil Nieves with runners on second and third.
The way the game started, it looked as if Nolasco would struggle to get through the five-run first inning, in which he gave up four hits. But the right-hander was able to go through five innings, allowing two more hits, and he settled for a no-decision.
The D-backs struck quickly off Nolasco, who threw 33 pitches to get through the five-run first. Arizona's first six batters reached.
Chris Young walked to open the inning, and he scored on Aaron Hill's double to left. Jason Kubel's single put runners on the corners, and Paul Goldschmidt walked to load the bases. Justin Upton ripped a two-run single to left, and Miguel Montero delivered an RBI single. Ryan Wheeler lifted a sacrifice fly to center, capping the big inning.
But after the first inning, both teams lost the services of an outfielder.
Upton experienced a tight left hamstring, and he was replaced by Gerardo Parra in right field. And Bonifacio was hindered by a sore right knee, and he was replaced by Hernandez, who pinch-hit.
Bonifacio will have an MRI exam on the knee on Wednesday morning.
The Marlins chipped back with two runs in the second inning off Trevor Cahill, who was unable to protect a five-run lead in his 5 1/3 innings. Lee walked and scored on Solano's RBI single, and Nolasco delivered an RBI ground-rule double. Had the ball not bounced over wall in left field, Miami would have tacked on a third run. But Solano had to remain on third base, where he was stranded.
Miami scored three in the sixth to pull even. Stanton doubled and scored on Solano's second run-scoring single of the game. Cahill gave way to Matt Albers, who gave up RBI singles to Hernandez and Petersen.
"I was trying to get the momentum back, but unfortunately, I wasn't able to go deeper in the game," Cahill said. "It seems like I was pitching in and out of trouble all night. A guy got on in just about every inning. It makes it tough. It's a credit to them, to have a rough inning like that, bounce back and put up zeroes the rest of the game. That's huge for them. Unfortunately, I couldn't hold the lead."