Pinch-hitter Aramis Ramirez singled to drive in the winning run with two outs in the bottom of the ninth and the Chicago Cubs beat San Francisco 2-1 on Wednesday night to end the Giants' seven-game winning streak.
Sergio Romo (3-1) gave up an infield single to leadoff batter Tony Campana, who moved to second on Reed Johnson's sacrifice. After a groundout moved him to third, Ramirez hit an 0-2 pitch to left to win it.
San Francisco's Emmanuel Burris hit an RBI single in the top of the ninth off Chicago closer Carlos Marmol (2-2) to tie the game after starter Ryan Dempster had shut out the Giants on two hits for eight innings and retired 20 straight at one point.
Marmol got the win despite his fifth blown save in 21 chances.