CHICAGO (AP) — Ricky Nolasco was pretty good Saturday night. The way the Marlins are playing, though, he needs to be nearly unhittable.

Nolasco allowed one run while pitching into the eighth inning, but the Chicago White Sox scored in the bottom of the ninth after Miami tied it in the top half for a 2-1 win.

READ MORE: South Florida Man Accused Of Setting Wife On Fire, Hitting Her With His Car

“At the end of the day, we can’t score any runs,” Marlins pitcher Mike Redmond said. “We have to be perfect. Pitch perfect every night.”

Chicago’s Jake Peavy (6-2) shut down the Marlins until Derek Dietrich hit a tying homer in the ninth.

Click Here to view a slideshow of the game.

But Conor Gillaspie had a game-ending single off Ryan Webb (1-3).

All of that added up to the Marlins’ fourth straight loss, 11th in 13 games, a 6-13 record in one-run contests, and sent them to a major league-worst 13-36 record.

Nolasco allowed one run and eight hits and struck out six in 7 2-3 innings for Miami but couldn’t earn his second consecutive win after beating Arizona on May 19. The Marlins right-hander has allowed two runs over his last two starts.

Alexei Ramirez gave Chicago a 1-0 lead with an RBI double in the third. Juan Pierre mishandled the ball in the left field corner — he wasn’t charged with an error — allowing Alejandro De Aza to score from first.

Giving up that lone run disappointed Nolasco.

“Everybody is frustrated. Not just me, everybody is,” Nolasco said. “Nobody wants to lose.”

Dietrich’s solo homer with one out in the ninth broke up Peavy’s bid at a shutout and allowed him to reach base for the 14th straight time to start his career, which is second in Marlins history behind Kevin Millar’s 17 games in 1999.

“Peavy pitched a great ballgame,” Dietrich said. “Just glad I got a pitch that I could handle and I could do something with and help the team.”

READ MORE: Opa-locka Hialeah Flea Market Vendors: 'We have to leave like dogs'

Peavy struck out five and allowed six hits in the complete-game effort, his longest outing of the season.

Miami, which hit into three double plays Friday, had its first scoring chance in the second when Justin Ruggiano grounded into one with no outs. Marcell Ozuna and Chris Coghlan had singled, but Miami didn’t score after the double play and Greg Dobbs’ strikeout.

With the single, Ozuna extended his hitting streak to 10 games.

Then in the eighth, Peavy allowed a one-out double to Dobbs and walked Adeiny Hechavarria but escaped the inning by getting Rob Brantly to pop out and Juan Pierre to fly out.

“It’s frustrating,” Redmond said. “I know the guys are frustrated. I know that.”

Peavy and the White Sox might have been frustrated momentarily in the ninth but it didn’t last long. Dewayne Wise led off with a double, and scored on Gillaspie’s single to left, easily beating a throw from Pierre.

“For us to come back and win in the (ninth) was special,” Peavy said. “That’s the White Sox way. Nothing’s easy around here, is it?”

Alex Rios went 0 for 4, snapping his 18-game hitting streak, which had been the longest in the American League this season. Gillaspie had three hits while Jeff Keppinger and Ramirez each had two for Chicago, which has won eight of 11.

“Baseball is such a funny game because everybody feeds off each other,” Gillaspie said. “We went through some pretty rough times the first half of the season. It’s good to kind of get everybody on the same page. Everybody’s excited. You can feel it in the clubhouse.”

There’s a different feeling for Miami, which lost the opener of the series 4-3 in 11 innings.

“Obviously that’s not the way we wanted to go out,” Webb said. “It sucks losing two games in a row like that.”

MORE NEWS: Taste Of The Town: Ball And Chain Serving Up Cuban Classics With A Side OF Salsa Music For 8 Decades

(© Copyright 2013 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)