MIAMI -

Giancarlo Stanton hit his 34th home run and the Miami Marlins scored three runs in the eighth inning to beat the New York Mets 9-6 on Monday.

Miami took advantage of some wildness by Mets reliever Jeurys Familia (2-4) in the eighth. Familia had two throwing errors and a wild pitch, leading to the three tiebreaking runs as the Marlins snapped a five-game losing streak to the Mets.

Jarrod Saltalamacchia scored on Familia's wild pitch, giving the Marlins a 7-6 lead. Adeiny Hechavarria later scored on a fielder's choice with the bases loaded and Christian Yelich came in a walk to Casey McGehee.

Marcell Ozuna and McGehee had two RBIs each for the Marlins, who used five relievers after starter Henderson Alvarez left in the third inning with a left oblique strain.

A.J. Ramos (6-0) pitched a scoreless eighth and Steve Cishek the ninth for his 32nd save.