Ramirez (12-4) won his fourth straight decision by allowing five hits and striking out a pair. The Braves have indicated that the 23-year-old left-hander likely will be used out of the bullpen in the postseason.
Giles snapped a scoreless tie with a solo homer with two outs in the sixth inning off Phillies starter Vicente Padilla (14-12). He is hitting .356 (16-for-45) in his last 11 games. Braves manager Bobby Cox joined Joe McCarthy as the only other manager in baseball history to record six 100-win seasons.
Javy Lopez added a two-run double in the seventh inning for a 3-0 lead, giving him a career-high 108 RBI. Lopez later scored on a double-play grounder to give Atlanta a four-run cushion.
The Phillies lost their sixth straight, matching a season high.
Four Braves relievers combined for three hitless innings. Jaret Wright set down the side in order in the seventh inning, Ray King and Will Cunnane combined to work the eighth and Kent Mercker pitched the ninth.
Ramirez retired 13 of 14 batters in one stretch from the first through fifth innings. He also got the Phillies to hit into a pair of double plays.
Padilla surrendered four runs and seven hits in seven innings. Padilla failed in a chance for his career-high 15th win and fell to 3-2 against the Braves this year, although he was the only pitcher to shutout the Braves during the regular season.
The series continues with an afternoon game on Saturday, when the players voted as the Phillies All-Veterans Stadium team will be introduced in a pre-game ceremony. The pitching match-up has Amaury Telemaco (1-4, 3.53) going against Mike Hampton (14-8, 3.83).