(AP) Matt Carpenter hit an RBI single with two outs in the eighth inning, putting the St. Louis Cardinals ahead during a four-run rally Monday night in an 8-5 win over the Milwaukee Brewers.
The Cardinals got seven of their 16 hits in the big inning, capped by pinch-hitter David Freese's two-run double. St. Louis won for the ninth time in 11 games.
Carlos Beltran and Jon Jay homered for St. Louis and Yadier Molina had four hits.
Aramis Ramirez snapped a 1-for-18 skid since returning from the disabled list Aug. 13 with a two-run homer off Michael Wacha (2-0) in the seventh to give the Brewers a 5-4 lead.
It didn't last long. The Cardinals erupted in the eighth off reliever Brandon Kintzler (3-1), who gave up four runs and six hits while getting just two outs.
Edward Mujica, who was unavailable during the weekend series at the Chicago Cubs because of a tired arm, pitched the ninth for his 32nd save in 34 chances.
Kintzler gave up a leadoff single to Molina, but Jay grounded into a double play. The Brewers reliever needed one more out to finish the inning, but gave up five consecutive singles to lose the lead.
Rookie Kolten Wong and pinch-hitter Daniel Descalso each singled and pinch-hitter Matt Adams singled to tie it at 5. Carpenter hit the next pitch from Kintzler for another single to score Descalso.
Beltran singled, and Freese then hit the first pitch from Burke Badenhop for a double.
The Brewers had two runners on in the ninth but Scooter Gennett grounded out to end the game.
Norichika Aoki hit his seventh homer for Milwaukee.
St. Louis starter Shelby Miller allowed two runs on five hits and four walks while striking out eight in 5 1-3 innings.
Milwaukee starter Marco Estrada allowed four runs on eight hits and a walk while striking out four in six innings.
Jay's two-run homer off Estrada in the sixth snapped a 2-2 tie. It was his seventh homer this year and second in two days after hitting a three-run shot in St. Louis' 6-1 win over the Chicago Cubs on Sunday.
Beltran snapped an 0-for-7 skid with his 21st home run in the first. He had three hits.
NOTES: Brewers CF Carlos Gomez remained out of the starting lineup Monday after spraining his right knee on Thursday night. Manager Ron Roenicke said he could play during the Cardinals series. ... Wong beat out an infield single in the sixth inning for his first major league hit. He then stole second for his first steal. He was hitless in his first 10 at-bats. ... Brewers 1B Juan Francisco struck out four times for the second consecutive game.