Matt Carpenter drove in the game-winning run in the eighth inning as the St. Louis Cardinals took an 8-5 win over the Milwaukee Brewers to open a three-game set.
Matt Adams tied the game in the eighth with a pinch-hit RBI single, and David Freese added a pinch-hit, two-run double later in the frame for the Cardinals, who have won three straight and six of eight.
Shelby Miller gave up two runs on five hits with four walks and eight strikeouts over 5 1/3 innings. Michael Wacha (2-0) gave up three runs in the seventh, but got the win thanks to his club rallying in the eighth.
"He made a couple of mistakes that came back to haunt him," said Cardinals manager Mike Matheny about Miller. "You know he had a leadoff walk one inning and hit a batter to start another inning and those came back to bite him."
Jonathan Lucroy went 3-for-4 with two RBI and a run scored, while Aramis Ramirez added a two-run homer for the Brewers, who have lost four of six.
"Everybody is playing for something here," said Ramirez. "We have a lot of young guys here who want to show everyone what they can do and get a full-time job for next year."
Marco Estrada pitched six innings and gave up four runs on eight hits with a walk and four strikeouts. Brandon Kintzler (3-1) took the loss after giving up the four runs in the eighth inning.
Trailing by a run entering the eighth, the Cardinals went on top in the inning on consecutive RBI singles from Adams and Carpenter. Freese gave the team some breathing room later in the inning with a two-run double for an 8-5 advantage.
The Brewers went down in order in the eighth, and Edward Mujica stranded runners on second and third in the ninth for his 32nd save of the season.
Carlos Beltran's 21st home run of the season, a solo shot to right in the first, staked the Cardinals to a 1-0 lead.
The third inning saw the Brewers tie the game on Lucroy's RBI single, but St. Louis went back on top in the fourth as Allen Craig led off with a single and scored on Yadier Molina's double for a 2-1 game.
The game was again tied after Norichika Aoki led off the fifth with his seventh homer of the year, but St. Louis went back on top in the sixth as Molina hit a one-out single and Jon Jay followed with his seventh homer of the season for a 4-2 advantage.
Milwaukee took its first lead of the game in the seventh as Lucroy laced an RBI single to center and came home when Ramirez followed with his sixth homer of the year for a 5-4 advantage.
Milwaukee stranded 11 men on base after batting just 2-for-9 with runners in scoring position ... The Cardinals left nine on base, but went 4-for-13 with RISP ... St. Louis has won nine of the 11 games against Milwaukee this season.