PHILADELPHIA (AP) - Hunter Pence hit a two-run homer, Hector Luna had three RBIs and the Philadelphia Phillies beat the Miami Marlins 6-4 on Friday night.

Pence, Carlos Ruiz and Placido Polanco each had three hits as the Phillies won for the seventh time in nine games. Jonathan Papelbon got five outs for his 15th save in 15 chances.

Logan Morrison and Justin Ruggiano homered for the Marlins, who had won three straight. Miami had 13 hits and left 12 runners on base.

The Marlins brought the tying run to the plate in the ninth but center fielder John Mayberry Jr. made an acrobatic catch on pinch-hitter Greg Dobbs' fly ball to end the game. Mayberry got turned around the wrong way, but reached out to snare the liner just in front of the warning track before rolling to his back.

Kyle Kendrick (2-4) allowed eight hits in 5 1-3 innings, but held Miami to two runs. The right-hander, who was coming off a seven-hit shutout against St. Louis on Monday, struck out four and walked three.

Mark Buehrle (5-5) gave up four runs and a season-high 11 hits in five innings for the Marlins. He had won his last four decisions.

Luna hit a run-scoring double in the seventh to give the Phillies a 6-2 lead. But Morrison and pinch-hitter Ruggiano started the eighth with consecutive home runs against left-hander Antonio Bastardo.

Morrison drilled an 0-2 pitch to deep right before Ruggiano belted the next pitch over the wall in left-center for his first homer of the season in his second at-bat with Miami.

Bastardo walked the next batter, John Buck, and was replaced by Jake Diekman. The left-hander struck out Chris Coghlan, then gave up consecutive singles to load the bases before being relieved by Papelbon.

After getting Omar Infante to pop out to shortstop, Papelbon struck out Hanley Ramirez looking. Ramirez reacted angrily to the called third strike, barking at umpire Kerwin Danley and tossing his equipment behind home plate.