As President Trump expands the use of the military in immigration enforcement, this nearly 150-year-old law has come into sharp focus.
The Posse Comitatus Act was designed to limit the use of federal troops in law enforcement activities on American soil. The rule has its exceptions and loopholes, but Trump's second term and his crackdown on immigration are shaping up to be a major test of the law.
Today, thousands of active-duty troops are deployed to the U.S.-Mexico border. What the military is allowed to do there has also dramatically shifted — going beyond the typical roles of supporting the Border Patrol.
Among the most significant developments came last month, when Trump designated a 170-mile stretch of federal land along the southern border — which spans through California, Arizona, and New Mexico — as a military installation, or a national defense area.
On Thursday, the Department of Defense that a second section in Texas will be marked as a military installation.
At least 82 people have been federally for "unauthorized entry" into the newly created National Defense Area in New Mexico as a result.
Here's what to know.
What are the restrictions under the Posse Comitatus Act?
The federal law was in 1878 following the Civil War, when former Confederate states were either unwilling or unable to enforce civil laws. In response, the federal government stepped in and deployed active-duty troops to maintain order. That led to concerns of potential military overreach.
While the law came after the Civil War, it's in one of the country's founding principals — which is the rejection of military involvement in civilian affairs. The ideal was a key grievance in the Declaration of Independence, which was later reflected in the Articles of Confederation and the Bill of Rights.
In practice, the law prohibits federal armed forces from taking part in civilian law enforcement, like conducting searches, seizures and arrests on American streets, except when "expressly authorized by the Constitution or Act of Congress."
This restriction to the Army, Navy, Marine Corps, Air Force and Space Force. On the other hand, the Coast Guard is exempt. The same goes for the National Guard, as it typically operates under state authority. However, Guard units become bound to the Posse Comitatus Act when they are called into federal service.
In some cases, the National Guard have served federal interests on state orders. For instance, in 2020, 11 states sent their National Guard troops to Washington D.C. to help respond to the protests over George Floyd's murder.
What about the new national defense area?
National Guard and federal military forces have been under previous administrations, generally in support roles to the Border Patrol, such as providing equipment, logistics and surveillance.
Now, federal military personnel will be allowed to who are considered trespassing on the newly-established national defense area at the southern border — effectively bypassing the Posse Comitatus Act.
" By doing this, he's sort of supercharging or empowering the military to be heavily involved in the immigration enforcement mission in ways they weren't before," said Mark Nevitt, a professor at Emory University School of Law who served as an attorney with the U.S. Navy Judge Advocate General's Corps (JAG).
Nevitt added that typically a president would need congressional approval to designate a military zone. But Trump was able to sidestep this requirement because he had at the southern border on his first day in office, which thereby authorizes military construction projects, Nevitt wrote in .

Dan Maurer,  a retired lieutenant colonel in the Army JAG, also raised concerns about the lack of clarity on how much force troops will be allowed to use against people trespassing the new military installation. In the regarding the new designation, it states that armed forces will "follow rules for the use of force."
In , Maurer wrote that while those rules usually align with domestic law enforcement standards and the Constitution, they also allow deadly force to protect sensitive property. The situation is further complicated by Trump's framing that the border is facing an "invasion" and "under attack."
"Hence the blurring of law enforcement and military operations can lead to ambiguity as to what role they're serving in and thus what force is truly authorized, legal, and reasonable," Maurer told NPR.
Nevitt worries that blurring the line between military and law enforcement roles could also undermine military readiness, as well as hurt military recruitment and retention.
"Most people join the military to fight and defend this country, defend their national security interests, deploy overseas," he said. "Not (to) be a domestic law enforcer."
The sweeping exception that Trump has not used yet

A key exception to the Posse Comitatus Act is , which gives the president the authority to call on the military during an emergency to curb unrest or rebellion within the U.S.
The Insurrection Act has been used about 30 times in American history, largely to quell civil unrest. It was last invoked in 1992, when President George H.W. Bush to Los Angeles to help quell the violence following the acquittal of the police officers who beat Rodney King. It has never been used for immigration enforcement.
The Insurrection Act can be more concerning than , which Trump has invoked to detain and deport Venezuelan immigrants, according to Maurer, who is now a professor at the Ohio Northern University Pettit College of Law.
Last week, a federal judge in Texas that the president's use of the Alien Enemies Act was "unlawful." Meanwhile, in 1827, the Supreme Court established that the president has the sole authority to invoke the Insurrection Act.
" But with the Insurrection Act, we already have case law that says courts can't really second guess the decision," he said.
Copyright 2025 NPR