Yankees starter Domingo German was also dominant on the hill. The right-handed pitcher allowed five hits and one run in six innings, earning his 10th win of the season.
Outfielder Aaron Judge drew first blood for the Yankees. Judge smacked an RBI double off Jason Vargas in the top of the first inning, giving the Yankees the initial edge. Gleyber Torres plated Judge in the same inning with an RBI single.
The Mets' lone run came in the bottom of the opening frame, with Jeff McNeil hitting a solo home run off German.
Torres struck out to begin the sixth inning, before Gregorius walked to the plate. The Yankees shortstop worked an even count against Vargas. He then crushed a 2-2 Vargas changeup over the right center field fence for his fourth home run of the season.
The 387-foot blast had an exit velocity of 99 mph and left the ball park in 5.7 seconds, according to Statcast.
The Mets opted to remove Vargas from the game after he surrendered the blast. Urshela then settled in against relief pitcher Wilmer Font. The Yankees third baseman quickly earned a 3-0 advantage in the count. Font then worked the count full before tossing in an 82.6 mph slider. Urshela smacked the offering over the left field fence, giving the Yankees a 4-1 edge.
Urshela's solo shot had an exit velocity of 101 mph and left the field in 4.8 seconds. The line-drive long-ball had a launch angle of 25 degrees.
Torres plated the final run of the game in the seventh inning on an RBI single.
Gregorius and Torres each went 2-for-4 in the win. Urshela was 2-for-3 with an RBI, a run scored and a walk for the Yankees. Vargas allowed seven hits and three runs in 5.1 innings for the Mets.