The Marlins clinched an improbable playoff berth in their coronavirus-decimated season, beating the New York Yankees 4-3 in 10 innings Friday night to seal a postseason trip on the field of the team that Miami CEO Derek Jeter and manager Don Mattingly once captained.

Miami earned its first postseason trip since 2003 when it won the World Series as the Florida Marlins, capped by a Game 6 victory in the Bronx over Jeter and his New York teammates at the previous version of Yankee Stadium.

The Marlins had the worst record in the NL last year at 57-105, then was beset by a virus outbreak early this season that prevented it from playing for more than a week.

Miami Marlins' Chad Wallach hits a single during the seventh inning of a baseball game against the New York Yankees at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

Miami Marlins' Chad Wallach hits a single during the seventh inning of a baseball game against the New York Yankees at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

After Jesús Aguilar hit a sacrifice fly in the top of the 10th, Marlins reliever Brandon Kintzler got major league batting leader DJ LeMahieu to ground into a game-ending double play with the bases loaded.

Miami players ran onto the field, formed a line and exchanged non socially-distant hugs.

The Marlins became the first team to make the playoffs in the year following a 100-loss season. Miami was one of baseball’s great doubts at the start of the shortened season, forced off the field when 18 players tested positive for COVID-19 following the opening series in Philadelphia.

Miami Marlins' Garrett Cooper runs past New York Yankees shortstop Gleyber Torres after hitting a three-run home run, also scoring Jesus Aguilar and Brian Anderson, during the first inning of a baseball game at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

Miami Marlins' Garrett Cooper runs past New York Yankees shortstop Gleyber Torres after hitting a three-run home run, also scoring Jesus Aguilar and Brian Anderson, during the first inning of a baseball game at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

The Yankees have already wrapped up a playoff spot this year.

Mattingly captained the Yankees from 1991-95 and is in his fifth season managing the Marlins, Jeter captained the Yankees from 2003-14 as part of a career that included five World Series titles in 20 seasons and is part of the group headed by Bruce Sherman that bought the Marlins in October 2017.

Miami is second in the NL East at 30-28 and improved to 19-13 on the road, The Marlins will play 34 road games due to the schedule disruption caused by the coronavirus; they arrived at their hotel at 5:30 a.m. following a rain-delayed win in Atlanta.

Miami Marlins starting pitcher Sandy Alcantara delivers during the first inning of a baseball game against the New York Yankees at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

Miami Marlins starting pitcher Sandy Alcantara delivers during the first inning of a baseball game against the New York Yankees at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

Garrett Cooper, traded to the Marlins by the Yankees after the 2017 season, hit a three-run homer in the first inning off J.A. Happ.

After the Yankees tied the score on Aaron Hicks’ two-run double in the third off Sandy Alcantara and Aaron Judge’s two-out RBI single off Yimi García in the eighth following an error by the pitcher on a pickoff throw, the Marlins regained the lead with an unearned run in the 10th against Chad Green (3-3).

Jon Berti sacrificed pinch-runner Monte Harrison to third and, with the infield in, Starling Marte grounded to shortstop. Gleyber Torres ran at Harrison and threw to the plate, and catcher Kyle Higashioka’s throw to third hit Harrison in the back giving the Yankees a four-error night for the second time in three games,

New York Yankees starting pitcher J.A. Happ, top, pitches to Miami Marlins' Jon Berti, bottom left, during the first inning of a baseball game at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

New York Yankees starting pitcher J.A. Happ, top, pitches to Miami Marlins' Jon Berti, bottom left, during the first inning of a baseball game at Yankee Stadium, Friday, Sept. 25, 2020, in New York. (AP PhotoCorey Sipkin)

With runners at second and third, Aguilar hit a sacrifice fly to the right field warning track as Harrison scored easily.

Brad Boxberger (1-0) walked his leadoff batter in the ninth but got Luke Voit to ground into a double play, and Kintzler held on for his 12th save in 14 chances. LeMahieu went 0 for 4, lowering his batting average to .348.

The Marlins ended the second-longest postseason drought in the majors — the Seattle Mariners have been absent since 2001.

Miami returned Aug. 4 following an eight-day layoff with reinforcements from its alternate training site, the trade market and the waiver wire to replace the 18 players on the injured list and won its first five games.

The Marlins survived a pair of four-game losing streaks to reach the expanded 16-team playoff. With games bunched, the Marlins are 14-12 heading into the final stretch of playing 28 games in 24 days.

Yankees manager Aaron Boone was ejected for arguing from the dugout in the first inning. Plate umpire John Tumpane called out Judge on a full-count slider that appeared to drop well below the knees and Boone argued during the next pitch, to Hicks, then was ejected.

Boone sprinted out to face scream at Tumpane from up close. Television microphones caught several of Boone’s profane shouts.

Pinch-runner Michael Tauchman stole second base in the eighth following a leadoff single by Gary Sánchez but was sent back to first, apparently because Tumpane interfered with the throw by catcher Chad Wallach.

Clint Frazier struck out on the next pitch and snapped his bat over a leg.

New York tied Pittsburgh for the major league lead with 46 errors. Sánchez was called for catcher’s interference for the third time in five days and fourth time this month.

Happ, on track to start next week’s decisive third game of the wild-card series — if necessary — allowed only two other hits in five innings. He finished with a 3.47 ERA in 45 1/3 innings and nine starts, falling short of the 10 starts or 61 1/3 innings needed to guarantee his $17 million option for next year. He was skipped in the rotation several times in August after he got off to a poor start but gave up just six runs over his last 24 1/3 innings, a 2.22 ERA.

LATE INNINGS

Miami is 28-0 when ahead after seven innings.

POWER OUTAGE

New York has not homered in five straight games for the first time since April 2014, according to the Elias Sports Bureau. ... Judge doubled in the third for his first extra-base hit since Aug. 11 and scored on Hicks’ hit.

REMEMBERING

Friday marked the fourth anniversary of the death of Marlins All-Star pitcher José Fernández at age 24, who died while piloting a boat that crashed. An investigation found he was legally drunk and had cocaine in his system.

“It is an emotional day,” Mattingly said.

The night also marked the sixth anniversary of Jeter’s final game at Yankee Stadium.

UP NEXT

RHP Deivi García (2-2, 4.88) starts Saturday for the Yankees and LHP Trevor Rogers (1-2, 6.84) for the Marlins. García will be making the sixth start of his rookie season. “A very different season, especially tough for minor leaguers,” he said through a translator.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports