Fiery freshman Rep. Alexandria Ocasio-Cortez will take the stand in Brooklyn federal court next month — to explain to a judge why she blocks people on Twitter.

The Bronx-born congresswoman will testify at a Nov. 5 hearing as part of an ongoing lawsuit brought by ex-Brooklyn Assemblyman Dov Hikind, who claims the Democratic darling wrongfully blocked him on Twitter because of his “criticism” of her.

Attorneys for the freshman lawmaker confirmed she would appear at the 11 a.m. hearing but declined to comment.

Hikind, a prominent Jewish leader, sued Ocasio-Cortez in July, claiming the Democrat violated his First Amendment rights after he criticized her on Twitter.

“I’m very excited,” Hikind told The Post on Thursday. “Five million people follow her and she blocks Dov Hikind. What in God’s name was she concerned about?”

At a town hall in August, AOC insisted she had blocked fewer than 20 people “for harassment, not for political views.”

“While people have a right to say whatever they want, they do not have a right to force me to hear it,” she said.

“Free speech isn’t an entitlement to force someone to endure your harassment,” she added.

Lawyers for Ocasio-Cortez asked that the suit be tossed with prejudice so it can’t be brought again — but a federal judge in September requested she come and explain herself.

“I think she has to testify,” Judge Frederic Block said. “Her point is that this was an A-OK thing to do … she has to explain.”

Hikind said he was blocked by AOC after he tweeted about her controversial comments comparing migrant centers at the border to concentration camps in June.

“That comment from her, I found so incredibly outrageous,” Hikind, also a Democrat, said at the hearing.

“I was shut out basically from having a conversation,” he said after he was blocked.