Christian Yelich’s bases-loaded, two-out, walk-off single lifted the Marlins to a 4–3 win over the Phillies Thursday, giving Miami its seventh win in eight home series this season.

The lanky 21-year-old outfielder grounded a 1–1 fastball off hard-throwing lefty Jake Diekman into left center field to score Marcell Ozuna from third. It was his first Major League walk-off hit.

The ninth-inning heroics salvaged a game where the Marlins took a 3–0 lead into the eighth inning, propelled by seven scoreless innings from starter Henderson Alvarez, an RBI single from Giancarlo Stanton and a towering two-run homer from Ozuna.

But it only took one inning to undo the good work of the first seven, as Marlins relievers A.J. Ramos and Mike Dunn allowed three Phillies to score in the top of the eighth, punctuated by Marlon Byrd’s two-run, 420-foot homer to center.

“Had we lost that game it would have been a tough one,” Marlins manager Mike Redmond said. “We had a lead. We coughed it up. But nobody quit. Nobody gave up. We kept fighting, put together some good at-bats and ended up walking them off. I think that’s the beauty of this ballclub.”

Yelich’s single was the Marlins’ fourth walk-off win in their last seven home games.

“That’s really important, especially against a divisional opponent. For us to get ahead like that early… and to be able to finish it there in the end is huge for us,” Yelich said. “Especially in close games, towards the end of the ballgame, we always feel like we’re going to pull it out. Someone is going to find a way and we’re going to end up winning.”