MIAMI (AP) - On the verge of a second successive series sweep, the Cincinnati Reds encountered a ninth-inning blip.

First Mat Latos gave up a triple, ending his bid for a complete game. Then closer Aroldis Chapman gave up another triple, sending the game into extra innings.

But the Reds bounced back in the 10th, scoring three times to complete their second three-game sweep in a row by beating the Miami Marlins 5-3 Thursday night.

NL RBI leader Brandon Phillips homered in the sixth inning and drove in the go-ahead run with a sacrifice fly in the 10th.

"We wanted to win the game in nine," Phillips said. "We could have just put our heads down, but we went with the flow."

Latos and two relievers combined on a six-hitter. After Chapman (3-1) blew a save for the first time in nine chances, J.J. Hoover gave up a run in the 10th but earned his third save.

Pinch-hitter Donald Lutz led off the 10th with a single against Steve Cishek (1-4). Following a walk, a bunt and an intentional walk, Phillips lifted a flyball for his second RBI of the night and 36th of the season.

Jay Bruce followed with a two-run double and finished with three RBIs.

The Marlins trailed 2-1 when Adeiny Hechavarria tripled with one out in the ninth, ending Latos' night.

"I really wanted to finish it," Latos said. "But we got a W, and that's all that matters."

Chapman came on to strike out pinch-hitter Placido Polanco on a 100 mph fastball, but rookie Marcell Ozuna connected with a 98 mph fastball for an RBI triple.

Chapman then struck out pinch-hitter Justin Ruggiano to send the game into extra innings.

"We thought we were out of it. Then they tied the game up," Reds manager Dusty Baker said. "You've got to come back and keep fighting. You have no choice."

Juan Pierre led off Miami's first with his first homer since June 23. Latos dominated after that, throwing only 91 pitches in 8 1-3 innings.

The right-hander's streak of wins in four consecutive starts ended even though he allowed just four hits and two runs.

"Latos was dealing," Baker said. "That's as pitch-efficient as I've seen anybody."

The young Marlins, who have the NL's worst record, lost their fifth consecutive game and were swept for the fourth time this year. They rank last in the majors in runs and totaled five in the series.

"I was trying to throw the ball right down the middle," Latos said. "It's a big ballpark, and I tried to let those guys get themselves out. A lot of them swing early and often."

Miami rookie Jose Fernandez allowed two runs in seven innings and threw a career-high 99 pitches. The Marlins have scored 23 runs in his eight starts.

The Reds swept a series in Miami for the first time since 2004. They've won a season-best six in a row to climb nine games above .500 for the first time.

The game was the finale this season between the two teams. Cincinnati went 6-1 against the Marlins, outscoring them 40-16.

Copyright 2013 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.