MIAMI -- What was shaping up as Miami's biggest comeback win of the season turned into one of its most frustrating losses.
After erasing a five-run deficit and tying the game in the ninth inning, the Marlins squandered a couple of walk-off chances, and it came back to haunt them.
Carl Crawford belted a two-run homer off Carlos Marmol in the 11th inning, and the Dodgers pulled out a 9-7 win at Marlins Park.
Miami's season-best four-game winning streak ended, but not without the club making some late-inning noise.
Marcell Ozuna, Jeff Mathis and Jeff Baker each went deep, giving Miami its first three-home run game since April 28, 2013.
"From the start of this homestand, we're starting to learn and realize the character of this ballclub," Miami manager Mike Redmond said. "These guys believe in themselves, they believe in each other. They feel like no matter where we're at, we have a chance to come back."
Off reliever Brandon League in the 10th, the Marlins had a golden chance to pull off their second walk-off win of the season. Adeiny Hechavarria led off with an infield single and took second on second baseman Dee Gordon's throwing error, and Giancarlo Stanton was intentionally walked. Casey McGehee tapped into a 4-6-3 double play, advancing Hechavarria to third. But Ozuna struck out.
"It was a tough one to lose, but I think in the grand scheme of things, tonight said a lot about where this team is going and what we're capable of doing," McGehee said.
Falling behind early forced the Marlins to use up all their position players, and their bullpen was taxed. Because of heavy use, Mike Dunn and A.J. Ramos were not available. Closer Steve Cishek pitched for the third straight day, and worked a scoreless 10th inning.
The Marlins were hoping Marmol could pick up two innings. Instead, he worked one, and gave up the home run to Crawford.
"It was tough," Marmol said. "I made one mistake -- pitch right down the middle and it was supposed to go away -- and he hit it far."
Crawford didn't start the game, but he entered in the 10th inning on a double-switch. One inning later, he was the hero for Los Angeles.
"You hope to just get a base hit," Crawford said. "When something like that happens, it uplifts you. It's a big lift for me, somebody looking for anything positive to get through the next day. To come through with a big hit like that and win the game, it's definitely encouraging."
The way they started, the Marlins weren't sure they would even be in the game. Then, they had numerous chances to win it, but they stranded 13 on base, including runners on third in the eighth, ninth and 10th innings.
"We were down early, and we kept coming, coming and coming," McGehee said. "We had chances to end it. Sometimes you're not going to get the hit you're looking for, but we had a heck of a lot of hits that we needed to get us back into that game."
In the ninth inning off Chris Perez, Miami tied it at 7.
McGehee doubled to lead off the inning and with one out, Garrett Jones walked. Baker's single to right loaded the bases, and with the count full, pinch-hitter Jarrod Saltalamacchia walked to tie the game.
Perez then struck out Christian Yelich before falling behind 3-0 in the count to pinch-hitter Derek Dietrich. One ball away from a game-winning walk, Dietrich took a strike before lifting a routine fly ball to center.
The Dodgers had built a big lead early, powered by Yasiel Puig's three-run homer in a four-run fourth inning against Jacob Turner.
"I felt like I made some quality pitches that they put good swings on, and obviously made some mistakes that they capitalized on," Turner said. "Obviously, the biggest one being Puig's homer. I've just got to execute better with two outs."
Gordon added five hits, stole three bases and had two RBIs.
In the eighth inning, the Marlins threatened again, loading the bases off Chris Withrow, who got out of the jam by striking out Stanton on three pitches.
After falling behind, 7-2, in the sixth inning, Miami used the long ball to make things interesting. Mathis homered off Paul Maholm in the sixth inning, and in the seventh, Ozuna capped an eight-pitch at-bat against Brian Wilson with a three-run homer, making it a one-run game.
"Ozuna probably had the at-bat of the year off Wilson and was able to get us back in it," McGehee said. "That's all you can ask for in a game like that, is to have a chance. Unfortunately, we were unable to capitalize on it. But, I guess the silver lining is we had our chances."
Turner was touched for six runs on nine hits in four innings.
The 22-year-old returned from the disabled list, where he had been out for a month due to a right shoulder sprain. The start was Turner's first since April 3, when he had a no-decision against the Rockies.
"It's disappointing. I feel like I let the team down," Turner said. "These guys are battling their butts off. I've just got to execute better."