If only mobs were allowed to destroy federal property without consequence. Then, there wouldn’t have to be any dispute over federal agents defending a federal courthouse in Portland, Ore.; it could simply be over-run and burned to the ground with no unwelcome resistance from the government.

As it is, Portland’s mayor, Ted Wheeler, who presides over a city that has become a watchword over the years for left-wing thuggery unchecked by municipal authorities, has roused himself to a state of high dudgeon — over federal officers trying to counter ongoing assaults on a federal building.

He calls the feds “a direct threat to our democracy” and argues that they are ­engaging in unconstitutional arrests and inflaming protests that he had hoped “would end within a matter of days.”

VIOLENCE ESCALATES OVERNIGHT BETWEEN FEDS, PROTESTERS AFTER THOUSANDS MARCH IN DOWNTOWN PORTLAND

Oregon Sen. Ron Wyden had this cool-headed take on the president and his acting secretary of Homeland Security: “Now Trump and Chad Wolf are weaponizing the DHS as their own occupying army to provoke violence on the streets of my hometown, because they think it plays well with right-wing media.”

If Portland was on the verge of calm prior to the arrival of the feds in force, it would have been the first time since the killing of George Floyd.

Protests have taken place every day since May 28. A few headlines form a timeline, from the local TV station Koin.com: For May 29: “Massive Vigil in North Portland Leads to Declared Riot Downtown.” For May 30: “Curfew Imposed — and ­Ignored.” For June 30: “Police Building Protest: Another Riot Was Declared by Police.”

Although the federal courthouse has done nothing to provoke protesters and has been standing at the same spot since 1997, it has been a constant target. Protesters have smashed its glass doors, covered its exterior with graffiti and repeatedly attempted to light it on fire. This has been happening since at least early July.

True to form, protesters over the weekend took down fencing and lit a fire at the building’s entryway. As a statement by the Portland police put it, “dozens of people with shields, helmets, gas masks, umbrellas, bats and hockey sticks approached the doors” of the courthouse — but surely it was just a misunderstanding that led the federal officers to believe they had to ­repulse them with tear gas.

This isn’t hard: It is the people attacking federal property who bear moral responsibility for what’s happening in Portland. In all the cities around the country where nihilistic mobs aren’t trying to burn down symbols of our justice system, there’s no ­enhanced presence of federal officers.

More from Opinion

The feds haven’t been wearing badges with their names and have been using unmarked cars — for fear of retaliation against the officers involved and mob actions against vehicles.

Both are unquestionably legal tactics. According to DHS, the officers are wearing the insignias of their agencies and unique identifiers; they are arresting only people suspected of involvement of ­attacks against federal property; and they are identifying themselves to arrestees, ­although not to crowds.

CLICK HERE TO GET THE OPINION NEWSLETTER 

Perhaps these officers should be more clearly identified, but there is no case whatsoever for calling them, as House Speaker Nancy Pelosi has, “stormtroopers,” who are “kidnapping protesters.”

The arrest of a man named Mark Pettibone has gotten a lot of press attention. He says he did nothing wrong and was arrested by federal agents, who took him to the federal courthouse and read him his Miranda Rights, before releasing him.

He wasn’t detained indefinitely, or disappeared, or harmed in any way, but ­apparently arrested in error and then ­allowed to go on his way.

CLICK HERE TO GET THE FOX NEWS APP

It would be one thing if municipal ­authorities in Portland could legitimately claim that they have things under control. They don’t. The mobs have been clashing with the local cops for months.

This long-standing riot is a stark commentary on the misgovernance of Mayor Wheeler, who is far better at insulting federal law enforcement than he is doing at his job.

This column first appeared in the New York Post.