Join Fox News for access to this content
Plus special access to select articles and other premium content with your account - free of charge.
Please enter a valid email address.

A federal judge in Florida ruled that a U.S. law prohibiting people from possessing firearms inside post offices is unconstitutional.

U.S. District Judge Kathryn Kimball Mizelle, an appointee of former President Trump, cited a 2022 landmark U.S. Supreme Court decision that expanded gun rights when she handed down her ruling Friday that dismissed part of an indictment charging a postal worker with illegally possessing a gun in a federal facility.

The 2022 Supreme Court ruling New York State Rifle & Pistol Association v. Bruen recognized a person's right to carry a handgun in public for self-defense and established a new test for assessing firearms restrictions that it said must be "consistent with this nation's historical tradition of firearm regulation."

Mizelle said the charge against U.S. Postal Service truck driver Emmanuel Ayala violated his right to keep and bear arms under the U.S. Constitution's Second Amendment.

NEW MEXICO DEMOCRAT GOVERNOR SLAMMED FOR ‘ANTI-2ND AMENDMENT’ PUSH: ‘ILLEGALLY TRYING TO SNATCH GUNS’

A photo of a US Post Office

A view of a US Post Office in Bethesda, Maryland on August 21, 2020. - US Postmaster General Louis De Joy denied claims that he was working to undermine mail delivery after comments by US President Donald Trump raised fears that the US Postal Service would be sabotaged to aid his chances in the November elections.  (MANDEL NGAN/AFP via Getty Images)

"[A] blanket restriction on firearms possession in post offices is incongruent with the American tradition of firearms regulation," she wrote.

But the judge declined to dismiss a separate charge for forcibly resisting arrest.

Ayala, who works in Tampa, had a concealed weapons permit and held a Smith & Wesson 9mm handgun in a fanny pack for self-defense, according to his lawyers.

Prosecutors said he brought the gun onto Postal Service property in 2012 and ran from federal agents when they attempted to detain him, and he was later indicted.

CALIFORNIA SHERIFF BLASTS NEWSOM'S ‘PRO-CRIMINAL AGENDA’ AFTER COURT BLOCKS LATEST GUN CONTROL LAW

Post Office truck

United States Post Office mail truck (USPS) speeding in Miami, Florida - motion blur panning. (iStock)

CLICK HERE TO GET THE FOX NEWS APP

Ayala was charged under a statute that broadly prohibits possessing a firearm in a federal facility, including a post office.

Mizelle said post offices have existed since the country's founding and federal law did not ban guns in government buildings until 1964 and post offices until 1972. She said there is no historical practice dating back to the 1700s that justifies the ban.

The judge said allowing the federal government to restrict visitors from bringing guns into government facilities would allow it to "abridge the right to bear arms by regulating it into practical non-existence."

Reuters contributed to this report.