Niese pitched eight sharp innings for his first victory since May 9, and the Mets beat the San Francisco Giants 3-0 to hand the slumping World Series champions their seventh straight defeat.
"Guys persevered today," Niese said. "They pushed some runs across. It was a good feeling."
Johnny Monell snapped a scoreless tie with a two-run double in the ninth against his former team.
"It just felt great to be able to come through for the team," Monell said. "When he pitches that well he deserves to win."
Michael Cuddyer had two hits, including a single that started the winning rally, to help the Mets improve to 3-1 on a six-game West Coast trip.
It was New York's second consecutive shutout, including an 8-0 victory Sunday at Dodger Stadium behind rookie Steven Matz.
"We don't play well on the West Coast, so to get off to a great start on this road trip is huge for us," Mets manager Terry Collins said. "It looks like we're starting to get some breaks."
Niese (4-8) retired 15 of his first 16 batters before running into a little bit of trouble in the sixth, when he lost his command momentarily. The Giants loaded the bases with two outs on Joaquin Arias' single and walks to Ehire Adrianza and Matt Duffy.
Niese retired All-Star slugger Buster Posey on a grounder to third to end the threat.
"I lost my feel for everything for a few batters," Niese said. "I wanted to slow the game down and stay calm to pitch against Posey."
The left-hander did not permit a run for the first time all season, ending a six-game losing streak and a nine-start winless streak. He allowed three hits, walked two and struck out four.
"He deserved it a lot," Collins said. "He's been pitching well lately and he had another tremendous outing."
Chris Heston, facing the Mets for the first time since throwing a no-hitter against them on June 9 in New York, gave up three hits in 7 1/3 shutout innings. He walked four and struck out two.
"I wish I would have not walked so many people and just tighten the zone a little better," Heston said. "But other than that I thought it went pretty well."
Cuddyer singled off Sergio Romo (0-4) to start the ninth and went to third on a double by Kirk Nieuwenhuis, called up from the minors before the game. Monell doubled against Santiago Casilla to drive in the go-ahead runs.
Heston was pulled after hitting Lagares with a pitch and walking Ruben Tejada sandwiched around a forceout on a ball that fell amid three players in short left field. Gregor Blanco threw to second to force Lagares.
Mets: Right-handed reliever Jenrry Mejia made his final rehab appearance Sunday and is expected to be activated in time for Tuesday night's game. Mejia completed his 80-game suspension for testing positive for performance-enhancing drugs.
Giants: OF Hunter Pence (soreness in left wrist) took batting practice the past two days, and manager Bruce Bochy said Pence could return this week.
Mets: RHP Bartolo Colon (9-6, 4.55 ERA) threw seven shutout innings in his last start. Colon is 2-2 with a 5.46 ERA in five starts against the Giants. He has not won in San Francisco in three years.
Giants: RHP Matt Cain (0-1, 9.00) will make his second start of the season Tuesday night. He made his first start in nearly a year on Thursday, taking the loss against Miami. Cain is winless in his last four starts against the Mets and is looking for his first win against them in four years.
Atlanta Braves shortstop Dansby Swanson and USWNT soccer player Mallory Pugh announce their engagement
Swanson earned a ring with a World Series win last month. Pugh got a ring this month. The two world champions announced their engagement and add to a star-studded list of power couples associated with the U.S. women's national team.
Time to put Minnie Minoso in Cooperstown (finally) and more on this weekend's Baseball Hall of Fame vote
Not everything in baseball is on lockdown. This weekend, the doors to Cooperstown could open for several deserving candidates -- including the most deserving of all.
MLB lockout in full effect as players, owners remain at an impasse
MLB commissioner Rob Manfred and union head Tony Clark voice opposing views of the players and owners that point to a lengthy lockout.
Advocates for Minor Leaguers forms steering committee to give players a voice, push for better conditions
Advocates for Minor Leaguers announced the formation of a player steering committee on Thursday that will provide strategic advice and leadership regarding the ongoing labor battle to provide better conditions across baseball's development levels.
What we do in the shadows: Locked-out players play into MLB's scrubbed pages
Players have started to change their profile pictures on Twitter to generic player silhouettes in response to MLB's decision to wipe their photos off league websites.
Rob Manfred defends MLB's decision to lock out players
MLB commissioner Rob Manfred explains why he believes a lockout is the best strategy to protect the 2022 MLB season for the benefit of fans.