Victories have been hard to come by for a rebuilding Marlins club, but staying competitive has not been an issue. The Marlins' last three defeats have been by a combined four runs. And 11 of their 23 games have been decided by three runs or fewer, including Tuesday.
"We feel like we have been in every game this year but two ballgames," Maybin said. "For a young team, it's about -- How do you finish? How do you learn how to finish? But being in the game is the first step, and we are in every game. I'm proud of that. I'm proud of the energy we bring."
They didn't get discouraged against the defending National League champions. The Marlins found themselves in a 2-1 hole in the eighth inning after Dodgers pinch-hitter Chase Utley worked a two-out bases-loaded walk against reliever Tayron Guerrero.
Castro, a nine-year veteran, came through with his RBI double off Tony Cingrani. Maybin delivered an inning later off Pedro Baez (0-1).
"I think there is something to be said about that," manager Don Mattingly said of the Marlins' resilience. "When you're not winning those games, you're kind of finding a way to lose them, and we have found a few different ways to lose games. We did it defensively, our bullpen let some games get away and we did it with not good starting pitching."
Drew Steckenrider (1-0) pitched a scoreless eighth inning for the victory, while Brad Ziegler pitched a scoreless ninth to earn his second save.
Realmuto continued to show how much he likes hitting against the Dodgers. He has a hit in all 18 games he has played against the Dodgers, with 12 of those at Dodger Stadium.
Left-hander Dillon Peters delivered the kind of start the Marlins were looking for, giving up just one run on four hits over 5 1/3 innings. He had four strikeouts, with two of those against Cody Bellinger.
It was Peters' strongest showing on the road this year after previous outings at Philadelphia and Milwaukee yielded a combined 13 runs on 13 hits with eight walks.
If anything, Peters has shown resilience by following a rough outing with a good one. Tuesday's start came after he gave up four runs to the Brewers with five walks.
"Just have short-term memory," Peters said. "It's baseball. You're going to have really good days, really bad days and some in the middle. So just get back to Day 1 after my start, get back to my routine and flush it, good or bad."
On Wednesday, a matchup with the Dodgers' Clayton Kershaw awaits, but the Marlins wanted to bask in Tuesday's comeback and assess whether they learned anything.
"Winning a couple of these, hopefully we can start to put some momentum together and you start to feel like you're going to win these games," Mattingly said. "That's the difference, really, in good teams and teams that aren't at that caliber. Tonight, we were able to do it, and hopefully we can do it again tomorrow and get some momentum."
MOMENTS THAT MATTERED Anderson's catch halts rally:Brian Anderson came up huge in the ninth inning with a single and a run scored on Maybin's double, but his defense in the seventh inning loomed large as well. After Utley's bases-loaded walk gave the Dodgers a 2-1 lead, Anderson made sure the game remained close by reaching over the railing on the third-base to catch Bellinger's foul ball for the last out, leaving the bases loaded.
Dietrich takes flight in left: Marlins left fielder Derek Dietrich made a diving catch in the fifth inning, possibly snuffing out a Dodgers rally. With one out, Corey Seager hit a line drive, with Dietrich going airborne toward the foul line, making the catch just off the top of the grass. Enrique Hernandez then grounded into a forceout to end the scoreless inning.
SOUND SMART WITH YOUR FRIENDS Realmuto is now tied with Jim Davenport (1958) for the longest hit streak to open a career against the Dodgers. Both players delivered hits in their first 18 games against them. Realmuto is batting .391 (25-for-64) in his career against the Dodgers, with 10 runs and a 1.021 OPS.
MITEL REPLAY OF THE DAY After a one-out double in the fifth inning by Lewis Brinson, Peters' comebacker was knocked down by Maeda, who threw to first, where Peters was initially called safe. The call was overturned on review for the second out.
UP NEXT Trevor Richards (0-2, 6.16 ERA) will mark the occasion of his first trip to California with a matchup Wednesday against Dodgers ace Kershaw in a 7:35 p.m. ET start. Richards lasted just 3 2/3 innings at Milwaukee on Friday, giving up a career high six runs. Kershaw (1-3, 2.45) has 35 strikeouts and just three walks in 33 innings.
Doug Padilla is a contributor to MLB.com based in Los Angeles.