Cole Hamels cooled off Boston's surging lineup with seven strong innings, helping the Phillies beat the Red Sox 5-3 on Sunday to salvage the finale of the weekend series.
Raul Ibanez hit a two-run homer for the Phillies, who snapped a six-game road losing streak with just their eighth win in their last 24 games overall.
Adrian Beltre hit his ninth homer for Boston, which plated double digits in each of the first two games of the series, winning by a combined score of 22-4.
Hamels (6-5) allowed one run and five hits, struck out eight and walked two, stopping a personal three-game skid. The left-hander has yielded three runs or less in each of his last eight starts.
Tim Wakefield (2-5) pitched 7 1-3 innings for Boston, allowing four runs and five hits. The 43-year-old knuckleballer also became the third active pitcher to reach 3,000 innings.
Jose Contreras relieved Hamels and pitched a scoreless eighth. J.C. Romero was charged with two runs in the ninth, but Brad Lidge got the final two outs for his fourth save.
Philadelphia, which had lost its last six games at Fenway Park, strung together five consecutive hits during its four-run fourth.
Jayson Werth hit a tying RBI single and Ibanez belted the next pitch into the Phillies' bullpen in right to make it 3-1. Ben Francisco doubled and Juan Castro added an RBI single.
It was a welcome sight for Philadelphia, which has had trouble scoring the past few weeks.
Castro also hit a sacrifice fly in the ninth to make it 5-1.
Wakefield reached 3,000 career innings when Shane Victorino flied out in the third, joining Philadelphia's Jamie Moyer and the New York Yankees' Andy Pettitte as the only active pitchers to reach the mark. Pettitte accomplished the feat on Friday night.
Fan, follow and download: Get the latest from NBCPhiladelphia.com anytime, anywhere. Follow us on Twitter, Facebook and NBC Philadelphia. Sign up for our breaking news newsletter. And, get breaking news delivered right to your mobile phone -- just text PHIBREAKING to 639710 to sign up. (Message and data rates mayapply.)