MIAMI (AP) -- Closer Jeurys Familia finally got the last out and the New York Mets halted Miami's furious six-run rally in the ninth inning, holding off the Marlins 8-6 Wednesday night for their sixth straight win.

Curtis Granderson of the New York Mets hits during a game at Marlins Park in Miami. (Mike Ehrmann, Getty Images)

Ahead 8-0 going into the ninth, the NL East-leading Mets saw the Marlins actually bring the potential winning run to the plate. Familia retired Christian Yelich on a sharp grounder with two runners on base to end it.

Juan Uribe hit a three-run homer and Lucas Duda drove in three runs, giving Matt Harvey (10-7) a huge lead. Harvey pitched seven dominant innings, giving up two hits and striking out six without a walk.

Mets relievers Eric O'Flaherty, acquired Tuesday from Oakland, Hansel Robles and Familia all struggled in the ninth. Familia gave up two hits, but got Yelich for his 29th save in 34 chances.

David Phelps (4-8) went 4 1-3 innings as Miami lost its third in a row.

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