Garrett Cooper’s grand slam ends perfect save streak this season by Detroit Tigers closer Shane Greene in Miami’s 5-2 win

Tigers second baseman Ronny Rodriguez bobbles a ground ball hit by the Miami Marlins’ Miguel Rojas in the ninth inning in Detroit on Thursday. Miami’s Jorge Alfaro was out at second base but Rojas was safe at first on the attempted double play. (AP photo)

DETROIT — A day after hitting his first major league home run, Garrett Cooper connected again.

In grand fashion, too.

Cooper hit a grand slam with two outs in the ninth inning and the Miami Marlins won their sixth in a row, rallying past Detroit 5-2 Thursday to finish a terrible homestand for the Tigers.

Cooper jumped up and down up the first base line as his ball sailed into the left field seats.

The Marlins, who had the worst record in the majors last week, extended the longest active winning streak in the big leagues.

Miami Marlins shortstop Miguel Rojas, left, tags out the Tigers' Gordon Beckham attempting to steal second base as umpire Paul Nauert watches in the first inning in Detroit on Thursday. (AP photo)

The Tigers wrapped up an 0-9 stay at Comerica Park against Houston, Oakland and the Marlins. That record doesn’t include a suspended game in which Detroit trails Oakland in the late innings.

Cooper homered off Shane Greene (0-2), who had been 15 for 15 on save chances this season.

“I just got to pitch better,” Greene said. “It’s my job to close the door there and I couldn’t do it.”

Instead, Cooper homered on an 0-1 pitch.

“As I walked in and told those guys, this is really hard,” Tigers manager Ron Gardenhire said. “We have to stick together, we have to have each other’s backs. There’s kids in there that are really upset. They know how the game went, they know what happened. We have to have their backs and I have their backs.”

The mistakes were made by third baseman Dawel Lugo and second baseman Ronny Rodriguez, who made their debuts last season and have 124 big league games between them.

It was 2-0 when Harold Ramirez opened the inning with a grounder that Lugo misplayed for an error. Ramirez scored on Neil Walker’s single.

Greene later induced a double-play ball to Rodriguez that would’ve ended the game. But Rodriguez bobbled it and Miguel Rojas was called safe at first, which was held up on replay.

“The only person I’m pointing the finger at today is myself,” Greene said. “I just got to make a pitch and pick up the team there and I couldn’t do it.”

After an intentional walk to pinch-hitter Curtis Granderson loaded the bases, Cooper took Greene deep.

On Wednesday, Cooper hit a home run in the sixth inning to spark a 6-3 comeback win in his 39th career game.

“It’s been an up-and-down roller coaster this past year and a half,” he said. “Just to play every day, that’s what I’ve been doing my whole life and doing in the minor leagues.”

Marlins starter Trevor Richards struck out six over 5 2/3 innings, allowing eight hits and one run.

For Detroit, right-hander Matthew Boyd threw six scoreless innings and Miguel Cabrera continued moving up the all-time lists.

Cabrera had an RBI single in the eighth. It was his second hit of the game and moved Cabrera into 60th place on baseball’s career hit list with 2,727, one more than Chipper Jones.

With the bases loaded in the sixth inning, Rodriguez hit a flyball to left field. Austin Dean made a sliding catch on the sacrifice fly for a 1-0 lead.