Trailing 4-3 in the eighth, Juan Pierre logged a one-out infield single against Jim Henderson (2-2) and after Ed Lucas struck out, Stanton cracked the first pitch he saw over the left-center field fence for the decisive blow.
The comeback made a winner of Chad Qualls (2-0), who tossed scoreless top of the eighth, and Steve Cishek recorded a 1-2-3 ninth as the Marlins evened their three-game series.
Derek Dietrich also smacked a two-run homer in the victory.
Millions of Getty images now available for free via embed tool
Boston schools pull out free condoms over wrapping complaints