WASHINGTON -- Jayson Werth's RBI double capped a three-run eighth inning, and the Washington Nationals rallied for a 6-5 win over the New York Mets on Sunday night.
Washington (69-67) averted a sweep in the three-game series and gained a game on the Cincinnati Reds in the race for the second National League wild card.
New York (62-73) saw its three-game winning streak end.
With Washington trailing 5-3 in the eighth, Scott Hairston and pinch hitter Denard Span opened with singles of reliever Scott Rice. Bryce Harper bunted the runners over, and Mets manager Terry Collins called on reliever Gonzalez Germen (1-2) to face Anthony Rendon.
Rendon grounded to short, scoring Hairston. Ryan Zimmerman (3-for-5) followed with a grounder up the middle. Shortstop Omar Quintanilla fielded the ball behind second and threw to first. Zimmerman was safe, and Span, who never stopped running, scored from second with the tying run.
Werth followed with a double to right-center, scoring Zimmerman from first with lead run.
Erik Davis (1-0) pitched a scoreless eighth inning for his first major league win. Rafael Soriano pitched the ninth for his 36th save.
Trailing 5-2, the Nationals got an RBI single from Wilson Ramos off reliever Scott Atchison in the seventh after Atchison threw two wild pitches with a man on first.
Matt den Dekker hit his first big-league homer for the Mets, who led 3-0 after two innings.
Nationals starter Ross Ohlendorf lasted just five innings, allowing four runs on nine hits. He walked one and didn't strike out a batter.
New York's Jonathon Niese pitched around 10 hits and two walks, allowing just two runs. After he walked Bryce Harper with two outs in the sixth, Niese appeared in some discomfort and was taken out of the game. The Mets later announced he suffered a left calf cramp.
Eric Young opened the game with a double down the right-field line, and Daniel Murphy doubled to left center to give the Mets a 1-0 lead. Murphy took third on a fly to right and scored on Lucas Duda's single.
With one out in the second, den Dekker made it 3-0 when he sent an Ohlendorf fastball into the second deck in right-center.
Washington got one back in the second. Werth doubled, went to third on a groundout and scored on a two-out single by Tyler Moore.
The Nationals pulled to within 3-2 in the fourth.
Ian Desmond and Ramos singled. After Desmond went to third on a fly out, Hairston singled up the middle, scoring Desmond. Ohlendorf bunted the runners over, but Harper grounded out.
New York responded in the fifth as Murphy singled home Niese, who doubled before being bunted to third by Young.
NOTES: Two Washington regulars, Span and 1B Adam LaRoche, both left-handed hitters, were not in the lineup against left-hander Niese. Span wound up extending his hitting streak to 15 games. ... The Nationals recalled Davis and LHP Ian Krol from Triple-A Syracuse, and C Sandy Leon from Double-A Harrisburg. ... The Mets activated RHP Vic Black, selected the contract of LHP Tim Byrdak from Triple-A Las Vegas and recalled INF Zach Lutz from their top farm club. They also optioned LHP Robert Carson to Las Vegas. ... New York RHP Daisuke Matsuzaka (0-2, 8.68 ERA) opposes LHP Paul Maholm (9-10, 4.37) Monday at Atlanta. On Monday in Philadelphia, Washington RHP Stephen Strasburg (6-9, 2.96) faces LHP Cole Hamels (6-13, 3.58).