WASHINGTON — The Miami Marlins pulled off one of the most improbable comebacks of the season Sunday, scoring six times in the ninth inning to erase a 2-0 deficit and beat the Washington Nationals 6-2. The rally was fueled by a series of small-ball plays, defensive miscues, and finally a towering home run from Otto Lopez that sent the Marlins' dugout into a frenzy. The ninth inning unfolded like a perfect storm. Esteury Ruiz started things by dropping a perfectly placed bunt single off Nationals reliever Max Kranick. Griffin Conine and Leo Jiménez then worked full-count walks, loading the bases with no outs. The Nationals summoned Tom Cosgrove from the bullpen, but his first pitch hit Jakob Marsee, forcing in the tying run. Joe Mack then lifted a sacrifice fly to center field, scoring Conine to tie the game at 2-2. The momentum shifted completely when Andrew Pinckney, trying to pick off Jiménez at third, threw the ball into the dugout, allowing Jiménez to score and giving Miami a 3-2 lead. Heriberto Hernández walked, and on a double steal, Marsee broke for home, sliding in safely to make it 4-2. Lopez then crushed a 400-foot home run to left field, landing in the Marlins' bullpen, capping the six-run inning. Dax Fulton, who had come on in the ninth, earned his first career win, pitching a scoreless inning with two strikeouts. Marlins starter Janson Junk had been efficient, allowing just one run on four hits in 4 2/3 innings, but was left with a no-decision. The Nationals struck first in the fifth when Nasim Nuñez doubled to drive in a run. They added an insurance run in the eighth on Daylen Lile's sacrifice fly, making it 2-0. Washington starter Andrew Alvarez was impressive, limiting the Marlins to two hits and three walks while striking out six over six-plus innings. But the bullpen could not hold the lead. The game also featured a notable injury: Marlins second baseman Xavier Edwards exited in the fifth inning after a collision with Jorbit Vivas during a tag play. Edwards felt discomfort in his left elbow and left thumb. He told reporters after the game that he was feeling better but would undergo imaging on his left thumb Monday. The Marlins will hope for good news as they continue their series. Defensively, CJ Abrams, who made his first start at second base for the Nationals, made a highlight-reel leaping catch on a line drive in the sixth inning, showcasing his range. The Nationals will look to bounce back in the series finale Monday, sending left-hander Will Dion to the mound against Miami's Ryan Gusto.