MILWAUKEE — Starling Marte hit a tying two-run homer in the eighth inning and Brandon Inge had a go-ahead RBI single to rally Pittsburgh to a 6-4 victory over Milwaukee on Wednesday.

Pedro Alvarez, who homered earlier in the game, added a run-scoring single to cap a four-run eighth as Pittsburgh won for the 10th time in its past 15 games and ended Milwaukee’s eight-game home winning streak.

Bryan Morris (1-1) got the last two outs of the seventh for his first career victory. Mark Melancon pitched the eighth and Jason Grilli the ninth for his 11th save.

John Axford (0-3) gave up all four runs while getting just two outs in the eighth for the Brewers.

Axford, removed as the Brewers’ closer earlier this season, replaced starter Hiram Burgos to start the eighth leading 4-2, and gave up a broken-bat, infield single to pinch-hitter Travis Snider.

Marte followed with his two-run homer to left-center, his third of the season and second in two days, to tie the score.

Jose Tabata singled and stole second two outs later. He injured his left leg on the slide and was replaced by James McDonald.

McDonald scored the tiebreaking run when Inge blooped a single over the head of second baseman Rickie Weeks, who inadvertently kicked the ball toward the outfield for a two-base error that allowed Inge to advance to third.

Axford was booed off the field when he was replaced by Michael Gonzalez, who quickly allowed a single to Alvarez to put the Pirates up 6-4.

Nationals 2, Braves 0: In Atlanta, Jordan Zimmermann (5-1) turned in another dominant performance with two-hit ball over eight innings, and Ian Desmond hit a two-run homer in the fourth for the Washington Nationals.

Atlanta starter Paul Maholm (3-3) nearly matched Zimmermann. He allowed only three hits in eight innings, retiring the last 13 batters he faced.

But Desmond provided all the runs that Washington needed, homering to left-center on a 1-1 pitch in the fourth after Bryce Harper led off with a walk.

Cardinals 4, Reds 2: In St. Louis, Lance Lynn won his 10th straight decision, allowing one run and five hits in seven innings.

Lynn (5-0) struck out five and walked two, improving to 10-0 in 10 starts and one relief appearance since losing to Milwaukee on Sept. 7. He became the NL’s first five-game winner.

Mets 7, Marlins 6: In Miami, Jordany Valdespin hit a three-run, pinch-homer, and the New York Mets rallied to break a six-game losing streak.

The Mets’ dormant offense finally woke up after they fell behind 4-1. Valdespin put New York ahead to stay in the sixth with his second homer, and National League RBIs leader John Buck added a two-run double in the seventh.

Buck and David Wright each had three of New York’s 13 hits. Wright hit his third homer for the Mets, who scored only 11 runs during their losing streak.

Bobby Parnell pitched a perfect ninth for his third save in five chances.

Dillon Gee (2-4) won despite allowing four runs and nine hits in five innings. The Mets had scored a total of 10 runs in his previous five starts.

Cubs 6, Padres 2: In Chicago, Scott Feldman retired 18 straight on his way to his first career complete game, and the Cubs took advantage of former No. 1 pick Andrew Cashner’s wildness.

Feldman (2-3) earned his second straight win, allowing two runs and three hits while walking one. After Chase Headley singled with two outs in the first, Feldman retired the next 18 batters.

Feldman had 12 strikeouts to set a new career high.

He also had an RBI double in the second to give the Cubs a 2-0 lead.

Starlin Castro was 2 for 4 with two runs scored for the Cubs.

Cashner, making his first start against the team that made him its No. 1 pick in 2008, lasted four innings and gave up five runs, four earned.