BALTIMORE — Jacob deGrom took a four-hitter into the eighth inning, Curtis Granderson hit two solo homers and the Mets beat the Orioles 5-3 Tuesday night to snap a three-game skid.
Granderson connected off Kevin Gausman on the game's second pitch and homered again in the fifth, then deGrom made the lead stand for first-place New York.
Baltimore had won four straight.
The Mets have won nine in a row against the Orioles dating to June 2010.
The shaggy-haired deGrom improved his ERA to 1.98, second in the National League behind the Dodgers' Zack Greinke.
Making his first appearance at Camden Yards, the 6-foot-4 deGrom extended a run of impressive starts. He has a 1.44 ERA in 16 outings since May 11.
The only glaring flaw in his performance was a sixth-inning home run by Gerardo Parra.
Because a sizable portion of the crowd of 34,068 backed the Mets, deGrom received a loud ovation when he walked off the mound with a 3-1 lead in the eighth.
Former Mitchell High standout Tyler Clippard entered with a runner on first, and Parra hit a liner to right. Granderson backed up, jumped and caught the ball at the warning track.
After New York added two runs in the ninth, Jeurys Familia entered with two on and one out in the bottom half. He issued two straight bases-loaded walks before retiring Manny Machado on a grounder for his 33rd save.
Daniel Murphy had two doubles and two RBIs for the Mets, the only team in the NL East with a winning record. Despite dropping three straight to the Pirates over the weekend, New York is 11-5 in August.
Baltimore was hoping to ride the momentum created by a four-game sweep of Oakland, but deGrom and Granderson put the brakes on a run that had lifted the Orioles into the second American League wild-card slot.
After a 46-minute delay, during which the tarp covered the infield in preparation of a shower that never arrived, Granderson hit his franchise-record seventh leadoff homer of the season, breaking a tie with Jose Reyes (2006).
New York went up 2-0 in the third when Wilmer Flores singled and came home on Murphy's two-out double.