MIAMI (AP) — Casey McGehee had three RBIs, including a two-run tie-breaking double in the seventh inning, and the Miami Marlins rallied in their home finale Thursday to beat the Philadelphia Phillies 6-4.

With the comeback, Tom Koehler (10-10) finally reached double figures in victories for the first time. He had gone winless in his six previous starts despite a 3.50 ERA.

READ MORE: Police Asking For Public's Help In Obtaining Cellphone Video Of July 4 Parkway Shooting That Injured 2 Officers

Koehler allowed four runs in seven innings. Steve Cishek pitched a perfect ninth for his 39th save in 43 chances.

The victory ensured the Marlins will end a streak of three consecutive last-place seasons in the NL East. They finished 42-39 at home, their first winning record since Marlins Park opened in 2012.

READ MORE: Kyle Schwarber Homers Twice, Phillies Still Fall To Nationals 3-2

Philadelphia sewed up last place in the division and finished 36-45 on the road.

BOX SCORE

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

MORE NEWS: Sergio Diggs, Philadelphia Police Officer Shot On Parkway, Recalls Fourth Of July Incident

Check Out These Sports Stories:
[display-posts category=”sports” wrapper=”ul” posts_per_page=”5″]