DETROIT — All hell broke loose at Comerica Park between the Tigers and Yankees on Thursday, with the benches clearing twice and a brawl between Detroit’s Miguel Cabrera and Austin Romine.

The chaos led to six ejections — five for the Yankees — through 6 1/2 innings.

The fireworks began when Tommy Kahnle threw his first pitch to Miguel Cabrera behind Cabrera’s back at 96 mph in the sixth inning with Detroit leading 6-3.

Kahnle immediately was ejected, setting off Joe Girardi, who quickly was tossed.

After Aroldis Chapman warmed up, Cabrera and catcher Austin Romine began jawing. Romine stood and removed his mask, and Cabrera shoved him before the two wrestled each other to the ground, leading to a benches-clearing brawl.

Gary Sanchez, who was the DH, came off the bench and appeared to punch Cabrera while he was being held down by Romine, which could lead to a suspension.

Since the umpires apparently didn’t see Sanchez belting Cabrera, he was allowed to stay in the game and take over for Romine behind the plate.

An inning earlier, Detroit starter Michael Fulmer had plunked the red-hot Sanchez. Sanchez had homered earlier in the game, his fourth of the series. Fulmer was visited by the trainer after landing awkwardly on the pitch, and no warning was issued by home plate umpire Carlos Torres.

Cabrera and Romine were both ejected.

Dellin Betances came on to start the bottom of the seventh and promptly drilled James McCann square on the helmet with a 98-mph fastball.

As McCann stayed on the ground, the umpires discussed the situation and eventually tossed Betances, who insisted he wasn’t throwing at McCann.

Bench coach Rob Thompson, who took over for Girardi, argued the decision, and he was ejected.

Once order had been restored — again — Betances’ replacement, David Robertson, incredibly hit John Hicks with a pitch, as the Yankees continued to unravel. Robertson then loaded the bases and gave up a three-run double to Jose Iglesias.

It wasn’t the first time the teams had issues this season.

Last month, Kahnle hit Detroit’s Mikie Mahtook in the head with a 98-mph fastball. Mahtook shook it off, but Tigers manager Brad Ausmus called out Kahnle at the time.

There were no fireworks in the first two games of the series.