Pete Kozma singled home the tiebreaking run in the sixth inning and the St. Louis Cardinals ended a four-game losing streak, beating the Chicago Cubs 8-4 and avoiding a sweep.
Matt Carpenter and Allen Craig each had three hits and drove in a run.
Jon Jay and David Freese both drove in two runs, though they only had one hit between them.
The Cardinals dropped five of six to begin a 10-game homestand.
Edward Mujica worked the last two innings for his 31st save in 33 chances, overcoming Starlin Castro's leadoff double in the eighth while working with a one-run cushion.