Jason Marquis (7-5) allowed four hits over 7 2-3 innings, including Chris Young's 15th homer, to get the victory and run Chicago's record to 7-1 since the All-Star break.
Brandon Webb (8-8), the 2006 NL Cy Young Award winner, gave up five hits and three runs _ two earned_ in seven innings and is 0-3 in four starts since June 27. He also lost to the Cubs for the first time in his career after going 4-0 against them in six previous starts.
The Diamondbacks have lost 10 of their past 13.
Ramirez hit his 16th homer, a three-run shot, in the eighth off reliever Brandon Lyon.
The Cubs scored all three of their runs off Webb with two outs. Both rallies were sparked by a Mike Fontenot stolen base and RBI single by Jones, who had four hits on Thursday against the Giants.
Fontenot walked with one out in the fourth, stole second and scored on Jones' two-out single, Chicago's first hit off Webb. After Young put the Diamondbacks ahead in the fifth with his 15th homer, a two-run shot into a 10 mph wind blowing in from left, the Cubs retook the lead in the bottom of the sixth.