PITTSBURGH -- The Padres surrendered a three-run lead twice in the final three innings Sunday, the last of which resulted in the Pirates finishing off a series sweep at PNC Park.
Kevin Newman's walk-off walk against Matt Wisler in the 11th inning gave Pittsburgh an 11-10 victory in a game that featured seven lead changes.
The Pirates scored four runs in the 11th inning, with three charged to Phil Maton and the last to Wisler.
Maton, who pitched a scoreless 10th, began the 11th by walking Bryan Reynolds. Starling Marte struck out on a full-count fastball before Josh Bell's single sent Reynolds to third, and Melky Cabrera's double scored Reynolds.
Wisler came in with runners at second and third and promptly allowed a game-tying single by Jacob Stallings.
Jose Osuna's single through the left side put runners on first and second, and Elias Diaz's walk loaded the bases.
Adam Frazier popped the first pitch he saw to shortstop Fernando Tatis Jr. in shallow left field before the walk to Newman (Poway High) ended the game after 4 hours, 58 minutes.
Manuel Margot's bunt single with two outs in the 11th inning and a two-RBI single tacked on by Austin Hedges seemed like it would be enough to pick up Kirby Yates, who had blown his first save in 27 chances by allowing three runs in the ninth inning.
After a scoreless 10th, the Padres loaded the bases against Francisco Liriano in the 11th and -- following a Wil Myers strikeout and a pop-up by Ian Kinsler -- were an out away from blowing the scoring chance before Margot dropped a first-pitch bunt to the right side against an infield that was shaded left and playing deep.
That scored Eric Hosmer, who had led off the inning with a walk and gone to third on Manny Machado's second double of the day before Hunter Renfroe was intentionally walked.