>Posse Comitatus
There are a number of situations in which the Act does not apply. These include:
National Guard units, state defense forces, and naval militias[17] while under the authority of the governor of a state. However, when the National Guard is federalized under 10 U.S.C. § 12406, that shifts control from the state governor to the President, making Guard operations subject to the Posse Comitatus Act as well.
Federal troops used in accordance to the Insurrection Act, which has been invoked 23 times, as of 2020.