Cameron Maybin found an opening, and the Marlins won as a result.
Maybin's go-ahead double in the ninth propelled the Marlins to a come-from-behind, 3-2 victory over the Dodgers and ended their five-game losing streak.
With the Dodgers shading Maybin toward right, the veteran pulled a double into the open expanse of left, scoring Brian Anderson from second with the deciding run.
The victory kept the Marlins (6-17) from descending into a tie with the Reds for the worst record in the Majors.
Sign Up and Save
Get six months of free digital access to the Miami Herald
Their record doesn't figure to improve any Wednesday when they face Dodgers ace Clayton Kershaw to close out both the series and what has been a brutal road trip in which they've won just twice in nine games.
It wasn't looking good for the Marlins in the seventh when Tayron Guerrero's bases-loaded walk gave the Dodgers a 2-1 lead.
But the Marlins got a run back in the eighth on Starlin Castro's two-out double and grabbed the lead on Maybin's two-bagger one inning later. Brad Ziegler worked the ninth for his second save.
The Marlins took early batting practice Tuesday, but the extra work didn't spark their stagnant offense, at least not initially. Beyond J.T. Realmuto's solo home run off Dodgers starter Kenta Maeda, Lewis Brinson's first career double, the Marlins managed only four hits over the first seven innings.
The Marlins received a workmanlike effort from starter Dillon Peters, who pitched into the sixth before turning the ball over to the bullpen. Peters gave up a run over 5 1/3 innings and left with the score tied 1-1.
In the seventh, though, the Dodgers put two aboard against Nick Wittgren, prompting manager Don Mattingly to go with Guerrero, who has been one of his most dependable relievers. But Guerrero walked the first two batters he faced, including Chase Utley with the bases loaded, to give the Dodgers a 2-1 lead.
But after Derek Dietrich singled with one out and advanced to second on a Tony Cingrani balk, Castro came through with a game-tying double.
NOTES: Wei-Yin Chen will make his first start of the season for the Marlins on Saturday, according to Craig Mish of Sirius/XM. Chen probably won't be the only pitcher joining the rotation during the upcoming homestand. Dan Straily worked 5 1/3 innings on Tuesday for Double A Jacksonville in what was likely his final rehab outing....Shortstop JT Riddle and third baseman Martin Prado played Tuesday in rehab games for Single A Jupiter as they continued to work toward their returns from the disabled list. Both are scheduled to play again on Wednesday for Jupiter.