PHOENIX (AP) Paul Goldschmidt homered to the opposite field with one out in the ninth inning to give the Arizona Diamondbacks a 5-4 victory over the New York Mets on Friday night.
Goldschmidt's 27th homer, his second game-winner of the year, came off Scott Atchison (2-1) after the Mets had rallied from a two-run deficit.
Brad Ziegler (5-1) pitched an inning of scoreless relief for the win.
The Mets' Marlon Byrd was thrown out at the plate trying for an inside-the-park home run in the second inning.
Patrick Corbin, looking for his 13th win, left with a 4-2 lead after six but the Mets scored twice off Heath Bell in the eighth to tie it, ending the reliever's string of 11 straight scoreless outings.
Atchison, the Mets' sixth pitcher of the night, retired Martin Prado to start the ninth and had a 1-1 count on Goldschmidt. But the Arizona slugger took the next pitch to deep right field, clearing the fence as Arizona improved to 3-0 to start an eight-game homestand.
The Mets' Justin Turner had three RBIs on two singles and a groundout, giving him 10 RBIs for the season.
Consecutive two-out doubles by Corbin, Adam Eaton and Prado put Arizona up 2-1 in the fifth. New York tied it in the sixth, but in the bottom half of the inning, Wil Nieves' double brought in two runs to give the Diamondbacks a 4-2 lead.
Corbin, 0-2 in his last three starts, allowed two runs and four hits in six innings, walking two and hitting two batters. He also had a wild pitch that led to a New York run.
Leading off the second, Byrd hit one deep to right center, where the ball careened off the porch that extends a few feet over the field. The ball bounced all the way back to left center.
When left fielder Prado finally chased it down, Byrd was motoring around third. Prado fired to Aaron Hill, whose perfect relay home was just in time for the catcher Nieves to tag Byrd despite the Mets' slugger's head-first slide.
It would have been Byrd's first career inside-the-park homer.
Hill also threw out Juan Legares trying to stretch a double to a triple with a relay throw from right fielder Cody Ross to end the seventh.
Arizona broke a 2-2 tie in the sixth after Hill singled and Ross doubled to put runners at second and third with no outs. Nieves doubled down the left-field line to bring both runners home, giving the Diamondbacks a 4-2 lead just as Corbin left the game.
In the eighth, Bell gave up singles to Daniel Murphy, Byrd and Josh Satin to load the bases with no outs. Groundouts by Turner and Wilmer Flores each brought home a run to tie it at 4 before John Buck bounced out to strand Satin at third.
Notes: Byrd needs one home run to reach 100 for his career. ... On Saturday night, RHP Brandon McCarthy (2-5, 4.94 ERA) makes his first home start since returning from the disabled list while RHP Zack Wheeler (4-2, 3.73) goes for New York. ... The Mets, coming off a three-game home sweep of Colorado, opened an 11-game, four-city trip that concludes with a makeup game at Minnesota.