MIAMI — The Marlins scored for the first time in 27 innings, pounded Jacob deGrom for seven runs in five innings and ended a seven-game losing streak, beating the Mets, 8-6, on Friday night.
Garrett Cooper’s two-run single in the third brought home Miami’s first runs since Saturday — also against deGrom. Jorge Alfaro hit a 456-foot home run, only the Marlins’ second homer this month, and drove in three. Brian Anderson doubled twice and scored twice.
DeGrom (3-5) gave up nine hits, and the run total against him was a season high. The reigning National League Cy Young Award winner’s E.R.A. rose to 3.98 from 3.26.
Pete Alonso hit two solo home runs for the Mets, giving him 14 this year. J. D. Davis added his fourth home run.
Trevor Richards (1-5) allowed three runs in six and a third innings for his first victory in nine starts this year.
Sergio Romo stranded two runners in the eighth and got the final six outs for his seventh save, and the first two-inning save of his career.
The Marlins ended a streak of seven losses to the Mets. Miami’s 11 victories this year, fewest in the majors, include three wins against former Cy Young winners — deGrom, Max Scherzer and Corey Kluber.
Miami, shut out in the past two games, broke through in the third against deGrom. Miguel Rojas reached on third baseman Todd Frazier’s error.
A sacrifice, a single and a stolen base put runners at second and third, and Cooper singled for his first runs batted in of the year.
The Marlins added two runs in the fourth on singles by Alfaro and Rojas. Alfaro’s two-run homer in the fifth made it 7-1.
Mets right fielder Carlos Gómez, called up before the game from Class AAA Syracuse, went 0 for 3. The two-time All-Star last played for the Mets when he was a rookie in 2007.
Left fielder Jeff McNeil (abdomen) was held out of the starting lineup but struck out as a pinch-hitter in the eighth. Outfielder Yoenis Cespedes (left and right heel operations) took batting practice and has started running.