Katie Stratman-USA TODAY Sports

Mike Moustakas hit a game-ending sacrifice fly with the bases loaded in the ninth inning and the host Cincinnati Reds beat the New York Mets 1-0 Tuesday night.

The Reds earned their second walk-off win in the last three days by surviving a dominating performance from Max Scherzer in his return from an oblique injury and put together a rally against Seth Lugo (1-2).

Tommy Pham opened the ninth with a double that sliced down the right-field line and just beyond Starling Marte's reach. After Tyler Naquin was intentionally walked, Donovan Solano drew a walk to load the bases.

The Mets pulled their infield and outfield in, and the Reds won it when Moustakas hit a 2-1 pitch to center field. Brandon Nimmo made a running catch, but Pham easily scored.

Scherzer allowed two hits and struck out a season-high 11 batters in six overpowering innings in his first start since getting injured May 18 against the St. Louis Cardinals.

Hunter Strickland (2-2) pitched a perfect ninth to set things up for Moustakas.

Scherzer notched his third double-digit strikeout game of the season and 107th of his career.

Scherzer struck out the side in the fifth and then ended his ninth start as a Met by fanning Pham on a 95 mph fastball on his 79th pitch.

Cincinnati rookie Nick Lodolo also returned from the injured list and allowed three hits in 4 2/3 innings after being out since April 24 with a back injury. He tied a season high with eight strikeouts and worked around three walks.

Lodolo stranded two runners in both the second and fourth inning.

The left-hander was lifted when Marte drew a two-out walk in the fifth. Joel Kuhnel took over and retired Francisco Lindor to end the inning. Ross Detweiler provided one inning of scoreless relief before Jeff Hoffman went 1 1/3 innings.

More must-reads:

TODAY'S BEST
Cardinals switch up offensive line, move 2023 first-rounder to new position
Commanders poach another key overseer of Lions rebuild
Commanders to hire veteran executive as player personnel director
Guardians designate outfielder for assignment
Patriots' Drake Maye starts OTAs in surprising position
Bettors are buying Bronny James hype before the 2024 NBA Draft
Mets release veteran infielder
Anderson Silva, Chael Sonnen will finish off their trilogy in a boxing ring
Victor Wembanyama, Chet Holmgren highlight 2023-24 All-Rookie team
Jaguars' Doug Pederson discusses Trevor Lawrence contract extension
Saints, star CB 'moving forward' following trade chatter
Pacers ride historic shooting performance to Game 7 blowout of Knicks
Timberwolves mount incredible second-half comeback to stun Nuggets in Game 7
Xander Schauffele proves doubters wrong with historic win at 2024 PGA Championship
Four things we learned from Joey Logano's All-Star Race win at North Wilkesboro
Phil Foden lifts Manchester City to fourth consecutive English Premier League title
Watch: Aaron Judge blasts 13th home run in Yankees' seventh straight win
Canucks won't have linchpin forward for Game 7 vs. Oilers
Jags reportedly mulling extension for Trevor Lawrence, but is that the right choice?
Gordon Hayward calls role with Thunder 'frustrating'