287g agreement questions have a new answer in Virginia. On November 23, 2026, a federal appeals court let Virginia enforce its 2026 law that rewrites, and if necessary voids, the agreements its sheriffs and jails signed with Immigration and Customs Enforcement under section 287(g) of the Immigration and Nationality Act, codified at 8 U.S.C. § 1357(g). The same court kept blocking a second Virginia law that would have required federal officers to work unmasked and display their names. Local news reports published between November 25 and November 27, 2026 said that the Loudoun County Sheriff’s Office was suspending its 287(g) agreement in response. The ruling turns on a simple distinction. A State may decide whether, and on what terms, its own officers help enforce federal immigration law, because federal law does not oblige it to sign anything. A State may not give orders to federal officers about how they do their federal jobs. That distinction answers the question most readers are asking: whether a 287(g) agreement can be ended by a state legislature, and what happens to people held in local jails when it is. The next dated step comes from Texas, which pulls the other way: under Section 2 of Texas Senate Bill 8, each county sheriff must comply, not later than December 1, 2026, with the State’s requirement that sheriffs who run or contract for a jail request and enter into such an agreement. This guide explains what the Virginia statute requires, what the court decided and why, what changes for detainers and transfers from Virginia jails, and how the Texas mandate and the federal-officer mask rulings fit the same rule.
I. Can a State End or Rewrite Its Sheriffs’ 287(g) Agreements?
A. What a 287(g) agreement is, and what Virginia’s 2026 law demands
A 287(g) agreement is a written contract between the federal government and a state or local law enforcement agency. Under the federal statute, the Attorney General may enter into a written agreement with a State or a political subdivision so that an officer or employee who is found qualified may carry out a function of an immigration officer in relation to the investigation, apprehension or detention of noncitizens. Three features of 8 U.S.C. § 1357(g) matter for everything that follows. First, the officer performs that federal function at the expense of the State or political subdivision and to the extent consistent with State and local law. Second, while performing it, the local officer is subject to the direction and supervision of the Attorney General. Third, the statute itself says that participation is voluntary: “Nothing in this subsection shall be construed to require any State or political subdivision of a State to enter into an agreement with the Attorney General under this subsection.” A separate paragraph adds that no agreement is needed for a local officer to communicate with federal authorities about a person’s immigration status or otherwise to cooperate in identifying, apprehending, detaining or removing people not lawfully present. In other words, under federal law an agreement is an option, not an obligation, and its absence does not by itself forbid ordinary cooperation.
Immigration and Customs Enforcement describes three versions of the program on its own 287(g) program page, which is agency guidance rather than law. The Jail Enforcement Model lets designated officers identify and process removable people who have pending or active criminal charges. The Task Force Model lets designated officers enforce limited immigration authority during routine police duties or as participants in an ICE-led task force. The Warrant Service Officer Model lets designated officers serve and execute administrative warrants on people already in their custody. The same page states that Executive Order 14159, issued on January 20, 2025, requires ICE to authorize qualified state and local officials under section 287(g) to the maximum extent permitted by law, and that several States, including Georgia and Florida, have passed or are considering laws requiring their agencies to seek or sign such agreements. For a family trying to understand why a relative was held or transferred, the model matters: a jail agreement operates inside the jail, while a task force agreement reaches street-level policing.
Virginia went in the opposite direction in 2026. The new Virginia Code § 15.2-1726.1 defines a federal immigration enforcement agreement broadly, to include both an agreement authorizing a state or local officer to perform a function of a federal immigration officer and an intergovernmental service agreement for civil immigration detention in a local, regional or state facility that also holds people for state crimes. It then forbids any Virginia law enforcement agency, a term that expressly includes sheriff’s offices, police departments, local and regional jails, the State Police and the Department of Corrections, to maintain, renew or enter into such an agreement unless it contains twelve listed terms. Among them: ICE must give the local agency the names and ranks of federal agents involved in enforcement activity at least seven days in advance; federal agents must comply with Virginia law and be clearly identified as ICE agents, without uniforms or equipment marked “police”; no enforcement activity on the property of schools, faith-based organizations or courthouses; consent to the jurisdiction of Virginia courts; no requests to Virginia localities about a person’s immigration or citizenship status without a judicial warrant or judicial subpoena; no enforcement near polling places while votes are cast and counted; limits on surveillance technology such as facial recognition, license plate readers and drones, with an exception for people not lawfully present who have been convicted of listed offenses; no entry into a home without a judicial warrant; and investigation of any shooting by the Virginia State Police. Families who also have ties to France should keep the two systems apart: residence and nationality questions there are governed by French law and handled by an immigration lawyer in Paris, while the conditions listed above are a matter of Virginia and United States law only.
The decisive provisions are the timing and enforcement clauses. Under subsection D of the Virginia statute, any agency with an agreement in effect on July 1, 2026 had to obtain in writing, no later than September 1, 2026, a modified agreement that complies with the twelve conditions; an agreement that is not modified “shall be deemed void and unenforceable.” Subsection E voids any agreement entered into or maintained in violation of the section, and subsection F lets the Attorney General of Virginia, an attorney for the Commonwealth, or a county or city attorney seek injunctive or declaratory relief, with attorney fees to the prevailing party. Two other provisions protect specific forms of cooperation. Subsection B forbids a Virginia officer acting as such to assist with an operation to identify, arrest or penalize someone for a violation of federal civil immigration law unless presented with a judicial warrant or judicial subpoena, while preserving several listed statutes and leaving criminal investigations, including joint state-federal task forces, untouched. Subsection G states that nothing in the section prevents the Director of the Department of Corrections, a sheriff or a jail superintendent who receives an ICE detainer from transferring custody of an adult as authorized by Virginia Code § 53.1-220.2, discussed in Part II. So Virginia did not ban every contact with ICE. It set conditions that most existing agreements did not meet, and it declared those agreements void if they were not rewritten by September 1, 2026.
B. Why the Fourth Circuit let Virginia’s law take effect
The federal government sued Virginia and its Attorney General on June 11, 2026, in the Eastern District of Virginia, with a six-count complaint against both new laws, and the district court entered preliminary injunctions against each of them. In United States v. Virginia, No. 26-1874 (4th Cir. Nov. 23, 2026), a published decision that also resolves the companion appeal No. 26-2258, the United States Court of Appeals for the Fourth Circuit vacated the injunction that had prevented Virginia from treating existing 287(g) agreements as void. The court held that the federal government was not likely to succeed on its intergovernmental immunity theory, because the 287(g) law neither directly regulates the federal government nor prevents private parties from contracting with it, and that the Contracts Clause claim also failed because each agreement covered by the injunction expressly allowed the local agency to terminate without cause. The court’s central sentence is worth reading in full: “Just as the Commonwealth was allowed to make one choice in the past, it is allowed to make a different choice going forward.” The practical application is that a sheriff in Virginia cannot rely on a signed agreement with ICE as a shield against the State’s own statute, and a person affected by a Virginia jail’s cooperation should now look first to the State’s conditions rather than to the old agreement.
The reasoning rests on four principles the Fourth Circuit stated in order: the federal government cannot issue orders directly to States; it cannot get around that rule by instructing state or local officials to enforce federal law; States remain free to change their minds about how to use their sovereign powers going forward; and state and local agencies have only the powers their State gives them, which the State may later take away. Applied here, those principles meant that Virginia could attach conditions to continued cooperation, much as Congress attaches conditions to federal funds, because the federal government can always decline the State’s help on those terms. The court also rejected the idea that the law was invalid because of the motives behind it, explaining that the intergovernmental immunity question turns on what the State did, not why. On the contract question, the court called the statute “functionally a notice of termination accompanied by a new offer.” It noted that 25 of the 30 agreements covered by the injunction required no advance notice from the local party, that the governor signed the law on April 22, 2026, which was 132 days before the provisions at issue took effect, and that the federal government filed suit with 82 days left. Even without the termination clauses, the court added, a State’s agencies cannot contract away the State’s power to decide whether and on what terms to help enforce another sovereign’s laws. One judge agreed with the 287(g) holding and dissented only on the separate mask law. Because the appeal concerned preliminary injunctions, the court spoke of what the federal government was likely to prove; the lawsuit itself continues in the district court.
The constitutional anchor for that result is the Tenth Amendment, which provides that “The powers not delegated to the United States by the Constitution, nor prohibited by it to the States, are reserved to the States respectively, or to the people.” The Supreme Court decisions on which the Fourth Circuit relied, including Printz v. United States from 1997 on state officers and Murphy v. National Collegiate Athletic Association from 2018 on federal orders to state legislatures, are described here through the Fourth Circuit’s own application of them in November 2026. The federal government’s contract argument relied on the Contracts Clause in Article I, Section 10, which forbids a State to pass any law impairing the obligation of contracts. The court assumed without deciding that 287(g) agreements are contracts, then held that a law ending agreements that were terminable at will did not substantially impair them. The court also distinguished a 2025 Third Circuit decision about New Jersey’s ban on private immigration detention contracts, explaining that a State may not destroy the federal government’s ability to hire private parties, but that Virginia’s law concerns only the State’s own agents.
Virginia is not the first State to win this kind of case. In United States v. New York, No. 1:25-cv-00744 (N.D.N.Y. Nov. 17, 2025), the United States District Court for the Northern District of New York dismissed the federal government’s suit against New York’s Protect Our Courts Act and two executive orders that limit state assistance with civil immigration enforcement. The court rejected the preemption, direct regulation and discrimination claims, and it explained why the last two could not succeed: “Finding that these same provisions constitute discrimination or impermissible regulation would provide an end-run around the Tenth Amendment.” The decision also noted that federal regulations describe immigration detainers as requests, a point that matters for jails, as Part II explains. For a reader outside Virginia, the lesson is that federal trial and appellate courts have now treated a State’s refusal to lend its officers to civil immigration enforcement as a protected choice, so the first question in any State is what its own legislature and agencies have decided. Each decision carries the weight of its own court: the Fourth Circuit’s published opinion governs federal courts within that circuit, a district court ruling does not bind other courts, and none of the decisions read for this guide is a Supreme Court ruling on a state law ending 287(g) agreements.
II. What Changes for People in Jail, for Other States, and for Masked Federal Officers?
A. Detainers, transfers and records after a Virginia agreement ends
For most families, the end of a 287(g) agreement shows up at the jail. The key federal document there is the immigration detainer. Under the federal regulation at 8 C.F.R. § 287.7, an authorized immigration officer may issue a detainer to any federal, state or local law enforcement agency to say that the Department of Homeland Security seeks custody of a noncitizen held by that agency. The regulation is explicit about its nature: “The detainer is a request that such agency advise the Department, prior to release of the alien, in order for the Department to arrange to assume custody.” Subsection (d) adds that, once the Department decides to issue a detainer for a person not otherwise detained by a criminal justice agency, that agency shall maintain custody for a period not to exceed 48 hours, excluding Saturdays, Sundays and holidays, so that the Department can assume custody. Those federal rules apply with or without a 287(g) agreement. What changes when the agreement ends is that the local officers no longer exercise delegated federal immigration functions, such as processing removable people inside the jail under federal supervision.
Virginia also keeps an older state rule on transfers. Under Virginia Code § 53.1-220.2, the Director, a sheriff or another official in charge of the facility may, on receipt of an ICE detainer, transfer custody of a noncitizen to ICE no more than five days before the date on which the person would otherwise be released, and the person receives credit for the days remaining on the state sentence. Subsection G of the 2026 statute expressly preserves that transfer power, and subsection B lists § 53.1-220.2 among the provisions that survive its judicial-warrant requirement. The result for a person serving a sentence in a Virginia jail is precise: the jail may still hand the person to ICE up to five days early on a detainer, but outside the listed exceptions Virginia officers may not assist with a civil immigration operation without a judicial warrant or judicial subpoena. Virginia’s statute does not expressly address every detainer situation, such as a person held only on a new arrest, so the checks below are framed around documents rather than assumptions.
Several checks follow from these texts for anyone with a relative in a Virginia jail. Ask the jail whether a detainer has been lodged and obtain its date, because the detainer is the federal request to which both the 48-hour language of the federal regulation and the Virginia five-day transfer rule refer. Write down the scheduled release date and compare it with any transfer date, since a transfer more than five days early would fall outside § 53.1-220.2. Ask whether the facility still operates under any modified agreement, because a Virginia agency may keep an agreement only if it contains the twelve statutory terms; an unmodified agreement is void under subsection D. Keep copies of any judicial warrant or judicial subpoena shown to officers, since subsection B turns on that document. And remember that a criminal case and an immigration case run separately: nothing in the Virginia statute addresses removal cases already pending in immigration court or the length of a criminal sentence. Readers in California face a different statute and different jail practices, discussed in our page on whether a California jail can hold someone for ICE after release is due.
B. Texas requires agreements, and no State may police federal officers’ masks
The voluntary design of section 287(g) that let Virginia withdraw also leaves other States free, as far as federal law is concerned, to commit. Texas did so in 2025. Chapter 753 of the Texas Government Code, added by Senate Bill 8 and effective January 1, 2026, provides that the sheriff of each county that operates a jail or contracts with a private vendor to operate one shall request and enter into an immigration law enforcement agreement, a term defined to mean a written agreement under section 287(g) or a similar federal program. A sheriff who requested but did not obtain an agreement must make additional requests at least once a year, and must annually provide proof of the attempt to the Texas Attorney General. Any agreement must state its scope, duration and limitations, and the sheriff must allocate the personnel and funding needed to implement it. A state grant program pays participating sheriffs between $80,000 and $140,000 depending on county population, for costs the federal government does not reimburse. The Texas Attorney General may sue a sheriff who fails to comply, in a district court of the sheriff’s county, and recover expenses. The transition clause in Section 2 of Senate Bill 8 sets the date: not later than December 1, 2026, each sheriff shall comply with the duty to request and enter into an agreement. The Fourth Circuit’s fourth principle, that local agencies have only the powers their State grants, describes the lever Texas used in the opposite direction; no court decision read for this guide has ruled on the Texas statute.
The limit on States appears when they try to regulate federal officers themselves. Virginia’s companion statute, Virginia Code § 19.2-83.6:2, defines a law enforcement officer to include any full-time or part-time employee of a federal law enforcement agency. It forbids facial coverings that conceal an officer’s face during official duties, subject to eight exceptions such as clear masks, medical masks, protective equipment, SWAT teams and undercover units, and it requires officers to visibly display a badge or insignia with a name or individual identifier and the name of their agency. A violation is a Class 1 misdemeanor unless the officer’s agency has adopted a written facial-covering policy using the model policy of the Department of Criminal Justice Services. In United States v. Virginia, the Fourth Circuit affirmed the injunction barring enforcement of this law against federal officers acting in their official capacities. Relying on Johnson v. Maryland, a 1920 Supreme Court decision holding that Maryland could not require a postal worker driving a mail truck to hold a state driver’s license, the court concluded that “States may not issue orders directly to the Federal Government.” The court emphasized that States may still limit or forbid masks for their own state and local officers, and that it was not deciding any Fourth Amendment question about masked or unidentified enforcement.
The Ninth Circuit reached the same conclusion about California. In United States v. California, No. 26-926 (9th Cir. Oct. 14, 2026), the United States Court of Appeals for the Ninth Circuit reversed a district court’s refusal to enjoin section 10 of California’s No Vigilantes Act, enacted September 20, 2025 and codified at California Penal Code § 13654, which requires non-uniformed officers, expressly including federal officers, to visibly display their agency and a name or badge number during enforcement duties, on pain of a misdemeanor. The court held that “Section 10 explicitly overrides the federal government’s power to determine whether, how, and when to publicly identify its officers,” that this is a direct regulation of federal operations Congress has not authorized, and that the burden on federal operations is irrelevant because there is no de minimis exception. It ordered the district court to enter a preliminary injunction against enforcement of section 10 against the United States, federal agencies and federal officers. The opinion also records that the district court had already enjoined California’s separate face-covering ban, section 3 of the No Secret Police Act, as applied to federal officers, and that no party appealed that ruling. For a reader in California, the application is direct: under these rulings a state prosecution of an ICE officer for not displaying identification or for wearing a mask is unlikely to proceed, so a person who believes an arrest was carried out unlawfully should look to remedies that do not depend on those state identification or mask statutes.
The Ninth Circuit’s earlier decision in United States v. King County, No. 23-35362 (9th Cir. Nov. 29, 2024) marks the other edge of the rule. There, the United States Court of Appeals for the Ninth Circuit affirmed summary judgment for the federal government against a Washington county executive order, issued in 2019, that directed county officials to ensure that future leases at the county-owned Boeing Field would prohibit fixed base operators from servicing ICE charter flights; all three operators at the field then stopped servicing those flights. The court held that the order violated intergovernmental immunity because it regulated how the federal government transports detainees by preventing ICE from using private contractors, and because it discriminated on its face against the federal government and its contractors; it also held that the order breached the 1948 instrument returning the airfield to the county, and that “The anti-commandeering doctrine provides no defense to the Executive Order.” For any State or county weighing its options, the distinction is the useful part: it may decline to lend its own officers, as Virginia and New York did, but in the Ninth Circuit’s view it may not use its property or its leases to stop private businesses from serving federal immigration operations.
Put together, these decisions give a reader in any State three questions to ask. First, has the State itself decided whether its officers may help with civil immigration enforcement, and on what terms? Virginia conditions and voids agreements, Texas requires its sheriffs to seek them, and New York limits courthouse arrests and information sharing; each is a choice of the State about its own officers. Second, does the state rule reach federal officers directly, as the Virginia mask law and California’s identification law did? If so, the rulings of the Fourth and Ninth Circuits indicate that it cannot be enforced against them. Third, does the local rule stop private businesses from working with federal immigration authorities? King County shows that, in the Ninth Circuit, such a rule is likely to fail. None of these decisions resolves whether a particular arrest was lawful under the Fourth Amendment, and none changes the federal law that governs removal itself.
Conclusion
A 287(g) agreement is a voluntary arrangement under federal law, and the Fourth Circuit’s November 23, 2026 decision, issued at the preliminary-injunction stage, concludes that a State may end it, rewrite its terms, or declare unmodified agreements void, as Virginia did with a September 1, 2026 deadline. The federal government’s contract argument failed because the agreements were terminable at will and because a State’s agencies cannot bargain away the State’s power to decide how its officers are used. The same decision drew the line where state power stops: Virginia cannot impose its mask and identification rules on federal officers, a conclusion the Ninth Circuit reached for California’s identification law in October 2026. In Virginia jails, federal detainers remain requests governed by the federal regulation’s 48-hour language, and the state five-day transfer rule survives the new statute. In Texas, the opposite policy applies, with each sheriff covered by the statute required to comply with the duty to request and enter into an agreement by December 1, 2026. Further proceedings in the Virginia case, including any request for rehearing or review by the Supreme Court, could still refine these answers, but the documents to look for today are the detainer, the release date, any judicial warrant or subpoena, and the current text of the local agreement.