BALTIMORE (AP) -- Jacob deGrom took a four-hitter into the eighth inning, Curtis Granderson hit two solo homers and the New York Mets beat the Baltimore Orioles 5-3 Tuesday night to snap a three-game losing streak.

New York Mets starting pitcher Jacob deGrom follows through on a pitch to the Baltimore Orioles in the eighth inning (AP Photo/Patrick Semansky)

Granderson connected off Kevin Gausman (2-5) on the game's second pitch and homered again in the fifth, then deGrom made the lead stand for the first-place Mets.

Baltimore had won four straight.

New York has won nine in a row against the Orioles dating back to June 2010.

The shaggy-haired deGrom (12-6) gave up one run, five hits and a walk in 7 2-3 innings. The right-hander struck out six and lowered his ERA to 1.98, second-best 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's 9-2 with 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.

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.

Following 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 a two-out double by Murphy.

Granderson hit his 22nd homer in the fifth just over the outstretched glove of a leaping Adam Jones in center field.

Gausman allowed three runs, six hits and a walk in six innings.


Mets: RHP Bobby Parnell was placed on the 15-day disabled list with right shoulder tendinitis. He allowed six runs over his previous two appearances while getting only two outs.

Orioles: C Matt Wieters was back behind the plate after missing a week with a right hamstring strain. ... OF Steve Pearce (left oblique) took swings in live batting practice in Florida.


Mets: Noah Syndergaard takes the mound for the Mets on Wednesday night in the series finale. The rookie is 7-1 with a 1.82 ERA at home and 0-5 with a 5.01 ERA on the road.

Orioles: Ubaldo Jimenez (9-7) looks to turn around a trend in which he's allowed 26 earned runs in 31 1-3 innings (7.47 ERA) over his last six starts.

(© 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)