Gerrit Cole pitched seven effective innings, Starling Marte hit a three-run homer and the Pittsburgh Pirates beat the Philadelphia Phillies 4-3 on Monday night.

Cole (5-1) allowed two runs and six hits, struck out six and walked two, shaking off his first loss in 10 starts with another good outing. The right-hander had won four straight before Wednesday's 3-0 home loss to Cincinnati.

Making his first start at hitter-friendly Citizens Bank Park, Cole improved 5-0 with a 2.36 ERA in his last seven road outings. The Pirates opened a seven-game trip with their fourth win in five games overall and seventh in their last eight against the Phillies dating to last season.

Gregory Polanco and Chris Stewart had two hits apiece for Pittsburgh, and Polanco also scored two runs.

Odubel Herrera broke out of a skid with his first major league homer in the ninth off Pirates closer Mark Melancon, who held on for his eighth save in nine opportunities. Grady Sizemore had a pair of RBI singles for the Phillies.

Philadelphia, which entered tied with Milwaukee for the major's worst winning percentage, has dropped 10 of 13 to fall to 11-22 (.333). It's the worst start for the Phillies since 1997, when they opened the season by losing 20 of 29 games.

Jerome Williams (2-3) lasted just five innings, giving up three runs and four hits. He struck out four and walked two.

The Pirates did most of their damage in the third inning. Williams walked Polanco and Andrew McCutchen, and Marte launched his eighth homer of the season into the seats in left-center to give Pittsburgh a 3-1 lead. Marte is 14 for 34 (.412) with five doubles and two homers in eight games in Philadelphia.

Philadelphia got a run back in the sixth on Sizemore's second RBI single. But McCutchen's sacrifice fly in the seventh made it 4-2.

The Pirates improved to 9-2 in their last 11 games in Philadelphia.

Herrera returned to the lineup after manager Ryne Sandberg rested the rookie center fielder on Sunday. Prior to the homer, he went 0 for 3 with three strikeouts in his first three at-bats to fall to 2 for 23 (.087) with 14 strikeouts in his last six games.

Philadelphia, which entered last in the majors in several offensive categories, has averaged 2.14 runs in its 22 losses. It has scored two runs or less in 14 of those games.

Copyright: 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

More From 97.3 ESPN