MILWAUKEE -- Sometimes all it takes is one swing to win.

That was the case Sunday afternoon, as New York Mets first baseman Lucas Duda launched a go-ahead two-run home run, his third of the series and 18th of the season, boosting the Mets to a 2-0 victory over the Milwaukee Brewers at Miller Park.

Duda's homer backed another stellar outing from rookie right-hander Jacob deGrom. deGrom (5-5, 2.79 ERA) won his fourth consecutive start for the Mets (owning 0.66 ERA over that stretch), throwing 6.1 innings of shutout ball while allowing four hits and striking out four.

deGrom and Brewers rookie right-hander Jimmy Nelson (1-2, 4.30 ERA) battled scoreless through the first five innings, but it was the Mets who drew first blood against Nelson.

Nelson had danced around a few early jams, stranding runners in scoring position in each of the second through fourth innings, but in the top of the sixth, Duda broke the tie blasting an 0-2 fastball from Nelson over the right field wall.

The home run gave the Mets (50-55) a 2-0 lead, and the only runs they would need en route to a series split with the Brewers (59-46) and a .500 trip overall.

It was the second time in the series Duda provided the winning power surge, after hitting a 2-run homer off Brewer closer Francisco Rodriguez on Friday night, giving the Mets a 3-2 victory.

The Brewers' offense was dominated by the Mets staff, which allowed just two runners to reach scoring position the entire game.

The best scoring chance for the Brewers came in the bottom of the 7th. deGrom started the inning with 109 pitches, and allowed two of the first three runners to reach base with singles. He was then removed from the game to make way for right-handed reliever Vic Black, who got pinch-hitters Scooter Gennett and Aramis Ramirez both to pop out to end the inning and any scoring threat for the Brewers.

Jeurys Familia pitched a scoreless eighth inning of relief, and Jenrry Mejia came on to try for the save in the ninth. The Brewers managed to get a pair of runners on base with two outs, but Lyle Overbay grounded out to end the game, and Mejia recorded his 15th save of the season.

NOTES: New York CF Juan Lagares returned to the starting lineup Sunday after appearing in a pinch-hit role Saturday night. Lagares is tied with Milwaukee CF Carlos Gomez for most defensive runs saved in the MLB the past two seasons at 42. ... Milwaukee 2B Scooter Gennett was out of the lineup for the fourth straight game while nursing a sore right quadriceps. Brewers manager Ron Roenicke said Gennett was available to pinch-hit Saturday night versus New York, but opted to give him another day off Sunday to ensure he is fully recovered. ... The Mets wrapped up their 10-game road trip Sunday, and now head home for a six-game homestand against the Philadelphia Phillies and San Francisco Giants. ... Brewers 3B Aramis Ramirez was not in the lineup Sunday with a scheduled day off. Ramirez has struggled at the plate recently, hitting just .077 (2-for-26)in his last 7 games. Elian Herrera gets the start at third for Milwaukee. ... The Brewers came into play Sunday 20-11 against the Mets since 2010, the best mark in the National League.