MIAMI -- The Cincinnati Reds tied a season high with 17 hits and it was their final one that proved to be the biggest.
Ryan Ludwick hit a go-ahead single in the 11th inning to lift the Reds to a 5-4 win over the Miami Marlins on Sunday.
"That was a big one for us," Ludwick said. "That's a team fighting to spoil people probably and they gave us all we could handle for three straight days. Just to be able to get that one was very important.
Ludwick, Dioner Navarro, and Didi Gregorius each had three hits for the Reds, who left 14 men on base.
"We did get a lot of hits," Reds manager Dusty Baker said. "We left a ton of guys on base, had a lot of opportunities, which is the name of the game. The more opportunities you get, sooner or later you're going to bust through."
Jonathan Broxton came on to pitch the bottom of the 11th for his second save with the Reds.
Carlos Zambrano (7-10) was the Marlins' ninth pitcher of the game when he came on to pitch the 11th. Zambrano, who had not pitched since Sept. 7, issued a lead-off single to Chris Heisey and walked Joey Votto before Ludwick singled through the left side for a 5-4 lead.
"When you lay off that much, you can't ask too much," Marlins manager Ozzie Guillen said. "On the other hand my starting pitchers have been throwing seven, eight innings plus the last week, week and a half. That's why the guys in the bullpen have not been pitching that much."
Miami had an opportunity to score in the 10th when Giancarlo Stanton came to the plate with two runners on, but Logan Ondrusek (4-2) struck him out.
"Ondrusek came in and got a big, big out on Stanton," Baker said.
Donovan Solano drew a two-out walk from Broxton, who got John Buck to fly out to the deepest part of the ballpark to end the game. Buck's deep fly to centre field was caught by Drew Stubbs just in front of the 418-foot wall.
"I knew in this ballpark to never give up on it because it's so deep out there," Stubbs said.
Jose Reyes hit a tying double off the right-field wall in the eighth inning off Mat Latos.
"I thought the ball that Reyes hit was a homer," Baker said. "I didn't see where it hit on the wall and I was glad it stayed in the ball park."
Reyes had three hits to lead the Marlins, who were searching for their first three-game sweep since June 29-July 1 when they swept Philadelphia.
"It's tough when you hit the ball good and you think you've got a home run and the ball doesn't go out," Reyes said. "It's kind of tough as a hitter but like I say it is what it is. You have to deal with it."
Latos pitched 7 2-3 innings allowing four runs and seven hits. He struck out eight and walked three.
"I tried my best to keep us in," Latos said. "I wound up giving up a lead, that's always aggravating. Seems like that's been the story of the year for me for the most part. We got a 'W' and we have to move forward. That magic number is getting closer and closer."
The Reds' magic number to clinch a playoff spot to begin the day was six over St. Louis and Los Angeles.
Gregorius' RBI single and Brandon Phillips's RBI ground out gave the Reds an early 2-0 lead.
Miami tied the game at 2-all with a two-run triple by Greg Dobbs.
Navarro's RBI single allowed the Reds to re-gain the lead at 3-2.
Cincinnati took a 4-2 lead after an RBI single by Ludwick in the sixth. The Marlins cut the deficit to 4-3 on a sacrifice fly by Donovan Solano.
Marlins starter Ricky Nolasco allowed three runs and 10 hits in five innings. Nolasco had won his last three starts including two shutouts over Washington.
"Obviously, this was not my best day," Nolasco said. "I got singled to death; a lot of ground balls just found the holes but it's part of the game. I just tried to go as deep as I could."
NOTES: The Reds also had 17 hits on June 14 against Cleveland and July 23 at Houston. ... It was Navarro's first three-hit game since July 8, 2009 against Toronto while with Tampa Bay. ... Nolasco is 4-2 with a 3.00 ERA in his last seven starts. ... The Reds will send RHP Homer Bailey (11-9, 3.93 ERA) to the mound on Tuesday at Wrigley Field to face Cubs RHP Justin Germano (2-7, 6.24 ERA) to begin a three-game series. Miami will host Atlanta with RHP Nathan Eovaldi (4-12, 4.71 ERA) getting the start against Braves LHP Paul Maholm (12-10, 3.90 ERA).