PHILADELPHIA -- Chase Utley ended a long night at Citizens Bank Park by smashing a two-run, walk-off homer in the bottom of the 14th inning to give the Philadelphia Phillies a 5-3 win over the Miami Marlins on Thursday.
Phillies shortstop Jimmy Rollins led off the 14th with an infield single. Utley, the Phillies' second baseman, then hit an 0-2 pitch from Chris Hatcher to right for a game-winner.
Hatcher (0-1) allowed two runs in 2 1/3 innings. The seventh Philadelphia pitcher of the night, Justin De Fratus (2-0), earned the win with two scoreless innings.
The Phillies (36-42) won for the 28th time in their past 39 games against the Marlins (39-40) at Citizens Bank Park.
Both bullpens were terrific. Six Phillies relievers combined for seven scoreless innings, while five Marlins relievers didn't allow an earned run over seven innings before Utley's homer.
Miami catcher Jarrod Saltalamacchia, right fielder Giancarlo Stanton and left fielder Marcell Ozuna all delivered solo home runs off Phillies starting pitcher Cole Hamels.
Hamels went seven innings and permitted three runs on six hits while striking out seven. The left-hander, who threw his sixth quality start in June, allowed his highest homer total in a game since his first start of the 2013 season.
Marlins starter Tom Koehler tossed six innings of two-run ball. The right-hander has not won since June 4.
Utley and center fielder Ben Revere had two hits apiece for Philadelphia, while first baseman Ryan Howard and third baseman Cody Asche added two hits apiece. Utley drove in three runs.
Stanton finished 2-for-4, the only Marlin with multiple hits.
After Hamels retired the first six batters, he started the third inning by falling behind in the count 3-0 to Saltalamacchia, who then crushed a 3-1 pitch into the left field seats to give Miami a 1-0 lead.
It was the first home run given up by Hamels since May 27.
In the following inning, Hamels again fell behind 3-0 to the leadoff hitter, Stanton, and the National League home run leader took advantage, hitting a 3-2 pitch for a laser home run to put Miami up 2-0. The homer was Stanton's 21st of the season.
The Phillies got on the board in the fourth inning when catcher Carlos Ruiz knocked in Utley with a sacrifice fly. However, Koehler minimized the damage in the inning by wiggling out of a bases-loaded, one-out jam with one run surrendered.
Philadelphia knotted the score in the fifth inning on a two-out, RBI single by Utley.
NOTES: Phillies LHP Cole Hamels entered Thursday with the lowest ERA (1.66) among major league starters since May 11. ... RF Giancarlo Stanton's fourth-inning homer was his 138th of his career, tying Miguel Cabrera for fourth on the Marlins' all-time home run list. ... Phillies RHP Justin De Fratus has pitched 16 consecutive scoreless innings since being recalled from Triple-A Lehigh Valley.