It all added up to a crucial win for the Mets.
Alonso hit two homers to take sole possession of the major league lead, deGrom struck out 11 and New York beat the Arizona Diamondbacks 3-1 Monday night in the opener of an important four-game series for both teams.
The Diamondbacks fell 2 1/2 games behind the Cubs for the second NL wild-card spot while the Mets remained four back. Chicago beat San Diego 10-2.
Alonso hit a solo drive in the first inning, then connected for his 47th home run in the fifth. He moved two ahead Mike Trout for most in the majors and closed within five of Aaron Judge's rookie record set two years ago.
"When they throw him strikes, he's going to hit the ball hard," manager Mickey Callaway said. "That's first and foremost. There's got to be some anxiety with pitchers having to face Pete. So, if he doesn't get on via hit, he's getting on via walk. He's just a great hitter."
Alonso set a team record by reaching base safely in his 34th consecutive game. The first baseman recorded his fourth career multihomer game and joined Daryl Strawberry as the only Mets rookie to get four multihomer games.
"We just made some mistakes in the wrong inning at the wrong time and he took advantage of them," Arizona manager Torey Lovullo said.
DeGrom (9-8) allowed one run and three hits in seven innings. He gave up a home run to former teammate Wilmer Flores in the fifth and little else.
"For him to throw the ball the way he did tonight, that was awesome," Alonso said. "That's Cy Young, vintage Jake deGrom right there. That was really special."
The reigning NL Cy Young Award winner recorded his 41st career double-digit strikeout game and ninth this season, tying Max Scherzer for the league lead. DeGrom struck out multiple batters in four innings and reached double-digit strikeouts when he fanned Ketel Marte with a fastball for the first out of the sixth.
DeGrom achieved his latest dominant performance by throwing his off-speed pitches more often. He threw his slider and changeup 57 times and got nine strikeouts on those pitches, including two to Marte, who struck out four times.
"It had a lot of movement tonight, probably more than it's had all year," deGrom said. "So I think we saw that early and kind of stuck with it."
Seth Lugo pitched two innings for his fifth save.
Amed Rosario added an RBI single in between the Alonso homers.
Merrill Kelly (10-14) allowed three runs on seven hits in six innings.
The Diamondbacks fell to 11-3 in their last 14 games and lost consecutive games for the first time since Aug. 21-24.
WELCOME BACK, WILMER
Flores made his first appearance in Citi Field since signing with Arizona in the offseason. He tipped his helmet after receiving a standing ovation before his first at-bat in the second inning.
"It was a little weird because I was used to being on the New York side," Flores said. "But I met a lot of good friends there, good teammates. It was a special night."
Flores appeared in 581 regular-season games for the Mets since making his major league debut in August 2013. He is best known for his game-winning homer against the Washington Nationals on July 31, 2015, four days after nearly being traded to Milwaukee for Carlos Gomez and breaking down in tears.
"I think just the ovation that he got tonight just shows you what type of guy he is, what type of player he is, what type of teammate he is," Kelly said.
Diamondbacks: LHP Robbie Ray (blister, left middle finger) threw a bullpen session and will make his next start on Wednesday. ... RHP Luke Weaver (right forearm tightness) will have a bullpen session Tuesday and could appear in a simulated game or a rehab game if there are no problems. ... RHP Taijuan Walker (right elbow surgery) will have a bullpen session Tuesday.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
San Diego Padres unveil new uniforms with brown-and-gold color scheme
Brown is back for the San Diego Padres.
Christian Yelich's run game and other lessons from Bill James Handbook
The Brewers star's overlooked talent and the value of the shift are part of the next-level fun in the annual analytics manual.
What Jeff Passan is hearing about MLB free agency, trade rumors and latest offseason buzz
With the MLB offseason underway, here's which potential free-agency moves and winter trades have baseball teams, players and agents talking.
Braves, Darren O'Day agree on one-year, $2.25M contract
Darren O'Day has agreed to a one-year, $2.25 million contract to remain with the Braves.
Top offseason spenders might include Angels, Padres, White Sox
Keith Law and Jeff Passan predict the teams that will be the biggest buyers this offseason.
Will Francisco Lindor and Kris Bryant be traded?
Keith Law and Jeff Passan predict whether the Indians and Cubs will make moves this offseason involving stars Francisco Lindor and Kris Bryant.