ST. LOUIS — Allen Craig hit an RBI single with two outs in the 10th inning and the St. Louis Cardinals beat the Milwaukee Brewers 5-4 Sunday to avoid a three-game sweep.
The Brewers tied it in the ninth on Norichika Aoki's two-out, two-run homer off closer Jason Motte. The two-strike drive barely cleared the right-field wall.
Matt Carpenter singled with one out in the St. Louis 10th off Kameron Loe (6-5) and moved up on a wild pitch. Craig singled and Carpenter made a nifty slide to score.
The Cardinals ended a three-game skid and held their slim lead for the second NL wild-card spot.
Milwaukee, which has won 15 of 20, was trying to reach the .500 mark for the first time since April 24.
Lance Lynn (14-7) picked up the win with one inning of scoreless relief.
Matt Holliday hit a two-run homer, his 26th, off Shaun Marcum. One out later, Carlos Beltran hit his 29th home run and first since Aug. 10.
Beltran ended an 0-for-14 slump. He had not gotten an extra-base hit in his previous 49 at-bats.
St. Louis pushed the lead to 4-1 in the second on doubles by pitcher Joe Kelly and Carpenter.
Milwaukee climbed to 4-2 in the fourth on singles by Corey Hart, Jonathan Lucroy and Jean Segura.
Segura, who had a career-high three hits, doubled with one out in the ninth off Motte. One out later, Aoki hit his eighth home run.