Ramirez hit a tiebreaking double in the 11th inning to lift Chicago over the Philadelphia Phillies 5-4 in the opener of a day-night doubleheader Saturday.
After a 41-minute rain delay following the top of the ninth, White Sox righty Nate Jones escaped a no-out, second-and-third jam in the bottom half. Ramon Troncoso (1-2) then left the winning run on third in the 10th.
"The last few innings, guys were hanging by the skin of their teeth," White Sox manager Robin Ventura said. "It wasn't pretty, but it worked out."
Alejandro De Aza hit a two-out triple off J.C. Ramirez (0-1) in the 11th and Ramirez followed with a liner to right-center for his fourth hit. Ramirez then scored when shortstop Jimmy Rollins booted Alex Rios' grounder for an error.
"Ramirez has been swinging the ball well, being aggressive," Ventura said.
The Phillies fell to 3-10 when they have a chance to move to .500. They won consecutive series over first-place Pittsburgh and Atlanta, and took three of four from defending NL East champion Washington.
But the inability to hit a sacrifice fly cost Philadelphia against the White Sox, who entered with the third-worst record in the majors.
"We had some golden chances," manager Charlie Manuel said. "All we had to do was hit the ball and couldn't do it. The game was sitting there for us."
"We just needed to hit a ball somewhere, make a fielder move," Manuel said. "Just needed to make contact."
Rookie Jonathan Pettibone allowed three runs and six hits, striking out six in six innings. The Phillies fell to 10-6 in Pettibone's starts.
White Sox starter John Danks gave up three runs and eight hits in 6 1/3 innings.
"I think I'm on the right track now," Danks said. "I'll be disappointed if it doesn't go right."
Darin Ruf fouled off three straight pitches before driving a changeup out to straightaway center to tie it at 3 in the seventh. Ruf has two homers in 20 at-bats since being called up to replace injured slugger Ryan Howard. Ruf hit 41 homers last season, including 38 at Double-A and three for the Phillies.
Ruf then made an over-the-shoulder, sliding catch on a foul ball near the stands in the eighth.
Conor Gillaspie's sacrifice fly put the White Sox up 3-2 in the sixth. De Aza's two-run double in the fifth tied it.
- Plate umpire Brian O'Nora left the game after the top of the 10th inning. There was no immediate word on the cause.
- Ruiz took a hard shot to the throat on a pitch that bounced in the dirt before striking the catcher under his mask in the seventh. He grimaced and went down to the ground briefly, but stayed in.
- This is the fourth-ever series between the teams and first since the Phillies swept a three-game set in June 2007.
- The White Sox recalled LHP Donnie Veal from Triple-A Charlotte to replace lefty Matt Thornton, who was traded to Boston on Friday night. Veal retired the only batter he faced in the eighth.
- Revere extended his hitting streak to 10 games.
- Gordon Beckham has an eight-game hitting streak.
- Cole Hamels (4-11, 4.17) goes for his third straight win in the series finale Sunday afternoon against Chicago's Jose Quintana (4-2, 3.67).