Rep. Alexandria Ocasio-Cortez loudly banged a gavel to shut down ex-acting Immigration and Customs Enforcement director Tom Homan when he kept defending himself and his agency after she repeatedly told him that his time had expired during a contentious House hearing.

The confrontation occurred Wednesday during a House Subcommittee on Civil Rights and Civil Liberties hearing on the Trump administration’s decision to deny medical deferral requests from illegal immigrants with life-threatening illnesses.

Committee member Rep. Rashida Tlaib of Michigan — who, like AOC, a fellow member of “the Squad,” has called for ICE to be abolished — laced into Homan, who was appointed to the post by President Trump and served from 2017 to 2018.

“As a fellow American, I want you to know your contribution as acting director of ICE under this administration will be remembered as one that was very ruthless and inhumane. I’m deeply troubled by your … continued assault on these innocent lives,” she said, referring to detained asylum seekers.

Homan — named “border czar” by Trump in June — asked to respond, but was initially put off as another witness was recognized.

Minutes later, however, a still-simmering Homan was given a chance to reply and launched a blistering defense of himself and of ICE, according to a video posted by Talking Points Memo that showed part of the exchange.

“I want to address the last comments [from Tlaib] about me being appalling and first of all, I served my country for 34 years. I saved many lives and I ran an agency — let’s be frank on what ICE did. ICE took opioids off this street that could have killed every man and woman and child in the United States twice,” he said.

“They have arrested sexual predators that preyed on children, and they arrested hundreds of women who were victims of sex trafficking. I find it appalling that a woman of Congress would do that. I have never seen hate toward a law enforcement agency that you want to abolish,” he continued before Ocasio-Cortez politely told him: “Mr. Homan, your time has expired.”

As a sputtering Homan kept talking, the freshman New York lawmaker, speaking quietly but firmly, told him twice more that his time had expired.

As he continued to fulminate, a frustrated AOC sharply banged the gavel — visibly startling at least one woman in the audience — and raised her voice to firmly tell him a fourth time: “Mr. Homan, your time has expired!”

Ocasio-Cortez, who was chairing the hearing at the time, then recognized another committee member.