Gorkys Hernandez and Justin Ruggiano also knocked in a run each during the uprising, which erased a 2-0 deficit.
Carlos Lee added a two-run double in the eighth to ice Miami's victory.
Ricky Nolasco (9-11) earned the decision after holding the Dodgers to a pair of runs on nine hits over five full innings. The right-hander walked one and struck out one en route to breaking a five-start losing streak.
The Marlins squared their three-game series with the triumph.
Matt Kemp went 3-for-5 with an RBI for Los Angeles.