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.
Yates, who had not allowed a run in a save opportunity and had yielded just four runs all season, surrendered three runs in a ninth inning that started with an error on a slow roller, an RBI single on a slow roller and an RBI fielder's choice on a dribbler up the first base line.
Diaz led off the ninth and was the benefactor of Machado's third error of the series on a ball Diaz might have beat out anyway, considering it was hit up the third base line at just 65.5 mph. Frazier followed with a towering double that one-hopped the wall in right-center field.
With runners at second and third, Newman sent another slow-moving grounder to shortstop that Tatis fielded on the run but couldn't quite get to first base fast enough. That scored Diaz and put runners at the corners.
Reynolds singled on a line drive up the middle to score Frazier and moved Newman to second. Marte moved them up with a sacrifice bunt, which prompted the Padres to intentionally walk Josh Bell.
Melky Cabrera chopped a split-fingered fastball up the first base line. Yates fielded it and had no choice but to get the out at first as Newman crossed the plate with the tying run. Yates got Colin Moran on a fly ball to left field to end the inning.
Until the ending, from the Padres' perspective the game could have been remembered largely for one of the game's newest shooting stars putting on a show on an old-school Sunday afternoon.
With the Pirates dressed in their pillbox hats with the 1970s-era bright yellow tops and black bottoms with the elastic waistbands, the 20-year-old Tatis started a back-and-forth day by scoring with one of the more daring runs anyone will ever see in the first inning.
The rookie drew a leadoff walk and went to third on Machado's one-out double.
And then he added to, among others, his feats earlier this month of scoring from second base on a grounder and from third base after being looked back by the pitcher.
When Newman, the Pirates second baseman, caught Renfroe's pop fly while standing just a few steps into the outfield grass, Tatis bolted from third and then paused, drawing a pump fake from Newman. At that, Tatis took off for the plate. The throw from Newman arrived before him, but Tatis reached in from the side on his headfirst slide and touched the plate just before catcher Elias Diaz tagged his arm.
Tatis later drove in a pair of runs and scored again in a game that didn't have a single home run but did have plenty of aggressive base running and patient at-bats.
The Padres drove the pitch count of Pirates starter Steven Brault up and drove him from the game after five innings. Brault threw 97 pitches. Seven of the Padres batters he faced ran the count full, three walked, six got hits and three scored.
But Brault left with his team up 4-3, in part because he hit a single that tied the game at 1 and scored to give the Pirates a 2-1 lead in the third inning.
That was the second time the Pirates had come back to take the lead.
The Padres took their third lead of the game in the sixth inning.
Hedges, who had doubled in his first two at-bats, reached first base on a strikeout that would have been the second out but instead bounced off the ground and the home plate umpire and rolled to the Pirates dugout along the third base line. Hedges moved to second on a grounder by pinch-hitter Josh Naylor and scored on Tatis' second RBI single. Hosmer followed with a single grounded up the middle off Richard Rodriguez, who had just entered the game in place of Clay Holmes (0-1).
Joey Lucchesi, for whom Naylor hit, allowed four runs on six hits in five innings.
Rookie Cal Quantrill made his first career appearance out of the bullpen and pitched a perfect sixth and scoreless seventh. Luis Perdomo followed with his seventh straight scoreless inning with a one-hit eighth.