As the wheels slowly came off for the Philadelphia bullpen, the Pirates took advantage of every Phillies mistake.

They had some timely hits, none bigger than Garrett Jones' bases-loaded double in the eighth, but they capitalized on walks and a hit batter as well.

The Pirates won, 6-4, Thursday at Citizens Bank Park to take three out of four games from the Phillies. They improved to 13-9, have won seven of nine, and their three wins in a row to close out the series came against Cole Hamels, Roy Halladay and Cliff Lee.

"They're a tough team, they have great ballplayers, they have a great pitching staff," said Gaby Sanchez, who went 2 for 4 with a home run and three RBIs. "To come over here and do what we did is definitely something that's uplifting. For us, it's just continuing to take that on to the next series."

Next on the docket: a visit to the St. Louis Cardinals, who just finished a sweep of the Washington Nationals and have won five of their past seven games.

Philadelphia's bullpen again allowed the Pirates to take a late lead. Phillippe Aumont took over for Lee with the score tied, 3-3, in the eighth and hit Clint Barmes in the back with one out.

Travis Snider and Starling Marte singled to load the bases for Brandon Inge. Pirates manager Clint Hurdle opted to pinch-hit Jones to face the right-handed Aumont, and Jones crushed a line drive off the right-field wall for a two-run double.

"As a pinch-hitter, you want to be aggressive and get a pitch to hit," Jones said. "Bases loaded, one out, I was just trying to drive something to the outfield."

Sanchez flied out to shallow right against Chad Durbin, but Marte's speed allowed him to tag and score, and the Pirates led, 6-3.

Aumont took the loss, allowing three runs on three hits in a third of an inning. In five innings of work the past two games, Phillies relievers allowed seven runs on 10 hits and four walks. The Pirates proceeded accordingly.

"We're looking for pitches," Sanchez said. "If we're not getting it, we're doing a very good job of laying off tough pitches and being on what we're looking for. I think that's what's creating those late rallies and creating good at-bats later in the game."