MIAMI -- When Giancarlo Stanton reached the dugout after hitting a majestic go-ahead homer Saturday night, Jose Fernandez greeted him with a grin and a flurry of punches to the chest, one slugger pounding on another.
Miami rocked Jacob deGrom (6-5), who allowed 10 hits and five runs, both season highs, and lasted just 3 2/3 innings in his shortest outing since August.
The longest hit was by Home Run Derby winner Stanton, who put Miami ahead to stay in the third inning when he pulled a two-run homer off the left-field scoreboard above the 401-foot sign. For that he earned a giddy greeting from Fernandez.
"I wanted to punch him hard. I was afraid I was going to hurt my hand, though," Fernandez said. "Every time he comes to bat, you don't know if he's going to hit it 10,000 feet."
Stanton added an RBI single in the fourth and singled in the first and sixth, hiking his average to .241 after a prolonged slump.
"It was a weird vibe in the first couple of innings," Stanton said. "It was kind of back and forth, and who was going to make the bigger punch was going to win the game. Luckily it was us."
Fernandez (12-4) gave up two early runs but went seven innings to match his career high for victories, achieved in his 2013 rookie season. He also had two hits, raising his average to .265, and drove in the first run.
"Even when I was at the plate, I was ready to do whatever it takes to win this game," Fernandez said. Nothing unusual there -- he improved to 26-1 with a 1.47 ERA in 37 starts at Marlins Park.
DeGrom was coming off the first complete game of his career, a one-hit shutout in his last start, but his anticipated pitcher's duel with Fernandez failed to materialize. The right-hander allowed at least two baserunners in every inning he worked, and his ERA rose to 2.73.
"I wasn't very good," deGrom said. "Seemingly everything I threw went down the middle, and I paid for it."
DeGrom's best moment came at the plate, where he doubled to lead off the third, his first extra-base hit since July 2015. He scored on a single by Yoenis Cespedes, and James Loney's sacrifice fly gave the Mets a 2-1 lead.
But that was all they managed against Fernandez. He hit 99 mph in the first inning, and his final pitch was a 98-mph fastball to Cespedes for strike three.
Christian Yelich led off the Miami third with a single, and Stanton dented the scoreboard with a homer that landed between the words BALLS and STRIKES.
"That was one of those pretty ones," manager Don Mattingly said.
"I didn't break any lights," Stanton said, "so that was good."
The homer was Stanton's first since he won the Home Run Derby, and his 21st this year. He has six homers in 10 games against the Mets this season, including three this month off deGrom.
Yelich had three of the Marlins' 16 hits, and Martin Prado drove in two runs.
"Guys did a really good job with deGrom, battling him and making him throw a bunch of pitches," Mattingly said. "We've been good with those type of guys. It's the soft-tossing guys we've had a lot of trouble with."
Miami's Ichiro Suzuki grounded out as a pinch hitter to end the eighth and remained four hits shy of 3,000.
Mets: 1B Lucas Duda (back) visited the team, took swings for the first time since his injury and said he hopes to be ready for a rehab assignment in a couple of weeks. "I feel good. I'm progressing on the right track," said Duda, who hasn't faced pitching yet.
Marlins: 2B Dee Gordon went 2 for 13 in his first four games with Triple-A New Orleans as he prepares to return next week from an 80-game suspension for a positive drug test. Mattingly said reports regarding Gordon's progress have been encouraging. "He's swinging the bat good and looks good for a guy who hasn't played in a while," Mattingly said.
"We've got to get the series," Stanton said. "Tonight won't mean much without that."
Fantasy baseball daily notes - Pitcher and hitter rankings for Friday
Prepare your fantasy baseball lineups confidently with our daily preview, including pitcher projections, hitter matchup ratings and more.
Houston Astros icon J.R. Richard, whose career was cut short by stroke in 1980, dies at age 71
J.R. Richard, who went 107-71 with a 3.15 ERA and 1,493 strikeouts in 10 seasons with the Astros before his career was cut short in 1980 by a major stroke, has died at the age of 71.
Fantasy baseball: Top prospects from the 2021 Olympics baseball tournament
With Team USA playing for the 2021 Olympic gold, Eric Karabell spotlights Red Sox prospect Triston Casas, Rays prospect Shane Baz, and more.
Cleveland Indians get 15-year lease agreement, plan $435 million in renovations to ballpark
The Cleveland team has agreed to a 15-year lease extension, keeping it at Progressive Field through 2036, and is planning $435 million in renovations to the downtown ballpark.
Fantasy baseball forecaster: Team hitting ratings
Stay ahead of the game and optimize your fantasy baseball hitters with our forecaster, which provides a rolling 10-day outlook of every team's hitting matchups as well as the potential for stolen bases.
Squirrels, cats, dogs ... bats? When animals ran loose in stadiums
A cat ran free at Yankee Stadium, but it's far from the first time an animal stole the show at a sporting event.