Gregory Fisher-USA TODAY Sports

DJ Stewart homered twice and finished with three RBIs Wednesday afternoon for the host New York Mets, who beat the Pittsburgh Pirates 8-3 in the rubber game of a three-game series.

The Mets improved to 5-11 this month. The Pirates have lost six of nine.

Francisco Lindor's two-run single closed out a three-run second inning and Brandon Nimmo added an RBI single in the fourth. Pete Alonso homered and Rafael Ortega had a run-scoring single in the seventh.

Tylor Megill (7-6) surrendered two runs on five hits and four walks while striking out five over five innings. Relievers Phil Bickford, Brooks Raley, Trevor Gott and Adam Ottavino combined on four innings of two-hit ball.

Nimmo drew two walks while Ortega had a walk and two singles. The Mets drew eight walks on the day.

Bryan Reynolds homered for the Pirates and Alika Williams laced a sixth-inning RBI single. Ke'Bryan Hayes finished with two hits.

Pirates starter Johan Oviedo (6-13) gave up four runs on five hits and five walks while striking out three over four innings.

Stewart opened the scoring by homering with one out in the second. Omar Narvaez followed with a double and Ortega walked. Jonathan Arauz struck out and Nimmo worked a walk before Lindor's two-run single.

The Pirates immediately answered in the third, when Hayes hit a leadoff double and Reynolds homered to right field.

Oviedo was pulled after issuing a leadoff walk to Alonso in the fifth. Alonso was caught stealing but Ryan Borucki issued a two-out walk to Daniel Vogelbach before Stewart homered again.

Connor Joe led off the sixth by singling against Phil Bickford and took second when Alfonso Rivas was plunked by a pitch before scoring on Williams' single.

Alonso opened the seventh by greeting Jose Hernandez with a homer to left. Jeff McNeil walked, went to third when Rivas misplayed Narvaez's two-out grounder to first and scored on Ortega's bloop single.

More must-reads:

TODAY'S BEST
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'
Mets reliever Edwin Diaz showing short shelf life of closers
Three offseason moves the 49ers must make
Watch: NASCAR drivers exchange punches after crash in All-Star Race
Knicks star offers passionate defense of HC Tom Thibodeau after Game 7 loss
Knicks' Jalen Brunson suffers serious injury in Game 7 vs. Pacers
Dodgers add recently acquired left-hander to active roster
Report: 2023 No. 7 pick expected to terminate KHL contract, join Flyers
Mavericks advance to Western Conference Finals aided by controversial call late
Connor McDavid, Oilers hammer Canucks to force Game 7
Tyson Fury-Oleksandr Usyk epic increases excitement for potential rematch
Seize the Grey wins in muddy Preakness

Want more MLB news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.