Dodgers former player Cesar Izturis singled home the winning run with two outs in the 11th against his former team in a score of 9-8.
"It wasn't pretty, but we won," Cubs manager Dusty Baker said. "The wildest game I've seen. ... We made a week's worth of errors in one game."
On July 31, Izturis was traded for Greg Maddux and sent a single through the middle to score pinch-runner Juan Mateo, a pitcher who lumbered around third and just made it to the plate as Dodgers center fielder Kenny Lofton threw home.
"He's a pitcher, but he scored," Izturis said. "They got the lead early and we came back. It's just nice to have a "W" like that."
Cubs pitcher David Aardsma got the win with two hitless innings.
When Izturis and Derrek Lee botched grounders to put runners at first and third, the Cubs made their fifth and sixth errors of the game in the ninth.
"You won't see them make errors in the same inning ever," Baker said.
But they did and the Dodgers tied it when Russell Martin hit a double-play grounder to short and second baseman Ryan Theriot's throw to first was low and first baseman Lee couldn't scoop it as pinch-runner Lofton scored from third on the fielder's choice.
J.D. Drew missed Theriot's fly ball along the wall down the right-field line for a three-base error and Lee followed with a sacrifice fly to give the Cubs an 8-7 lead.
Derek Lowe was staked to an early 7-0 lead but gave up seven hits and five runs in the fifth. He lasted five innings, allowing 10 hits and five runs before the Cubs tied it in the seventh against the Dodgers' bullpen.
"I really let them back in the game," Lowe said. "I couldn't put a stop to the inning. With a 7-0 lead, you've got all the momentum."
Before pinch-hitter Ramirez greeted Jonathan Broxton with a game-tying two-run single, the Chicago Cubs loaded the bases in seventh against Brett Tomko on a single by Jacque Jones and two walks.
"Every game is important for us right now," Dodgers manager Grady Little said. "You don't like the thought of being up 7-0 and losing. That game was decided in the fifth, not the 11th."
After Chicago Cub’s second baseman Freddie Bynum made three errors in the first two innings, two in a four-run first, the Dodgers got a comfortable lead.
"The best thing is to forget about it. It's hard to forget about it, but you got to go out there and do your job," Bynum said.
"It only gets in your head if you let it get in your head."
After Julio Lugo and Nomar Garciaparra singled with one out in the first, J.D. Drew walked to load the bases and Jeff Kent hit an RBI single.
Bynum dropped Lowe's popup to start the second and Furcal hit his 11th homer, a long shot to left center, for a 6-0 lead. With two outs in the inning, Bynum nearly had his fourth error when he threw high to first on Drew's grounder, but Drew was given a hit because he raced down the line, arriving at the same time as the ball.
Chicago right fielder Jones missed Kemp's third-inning fly ball for the Cubs' fourth error and Russell Martin hit an RBI single for a 7-0 lead.
Chicago starter Sean Marshall gave up six hits and four walks in 3 2-3 innings but only three of the seven runs against him were earned.