MIAMI (AP) — Ben Revere scored the go-ahead run when Miami second baseman Donovan Solano bobbled a grounder in the ninth, and the Philadelphia Phillies rallied past the Marlins 5-4 Thursday night to snap a six-game losing streak.

Tony Gwynn Jr. led off the ninth with a walk and eventually scored the tying run against Miami closer Steve Cishek (4-4). Revere scored easily when Chase Utley hit a grounder and Solano could only get the out at first.

Phillies closer Jonathan Papelbon got his 19th save in 21 chances. Jake Diekman (3-2) got the win despite a shaky eighth, giving up two runs and costing Philadelphia the lead.

Revere had two hits for the Phillies, who won for the third time in 13 games.

Marcell Ozuna had three hits and scored twice for Miami, and Christian Yelich also had a two-hit night for the Marlins. Casey McGehee extended his hit streak to 10 for Miami, reaching base for the 27th straight game.

It went back-and-forth all night: The Marlins led 2-0, the Phillies went up 3-2 and the Marlins answered with two in the eighth for a 4-3 lead on Jeff Baker’s pinch-hit triple.

But Cishek blew a save chance for just the second time all season, and the Phillies avoided a sweep.

Cameron Rupp had a two-run double to highlight Philadelphia’s three-run sixth. Rupp was batting .125 before his opposite-field hit sailed over Giancarlo Stanton’s head and off the right-field wall.

Phillies starter Kyle Kendrick gave up six hits and struck out four in seven innings, leaving with a 3-2 lead. Marlins starter Brad Hand gave up three singles to open the sixth and was chased after 99 pitches, the fourth-most of his career.

Utley, Ryan Howard and Marlon Byrd all singled to start the Philadelphia sixth, and that was the end of Hand’s night. Utley scored on a groundout and Marlins reliever Chris Hatcher was one strike from escaping without further damage, but Rupp connected on a 3-2 fastball to put the Phillies on top.

Hand’s sacrifice bunt — his first RBI in nearly three years — allowed Ozuna to score Miami’s first run in the second. Ozuna singled and scored again in the fifth, Yelich driving him in that time for a 2-0 Miami lead.

(© Copyright 2014 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)

You may also be interested in these Sports stories:

[display-posts category=”sports” wrapper=”ul” posts_per_page=”5″]