The posse comitatus, in common law, is the group of people mobilized by the conservator of peace - usually the sheriff - to suppress lawlessness or defend the county. The posse comitatus originated in ninth century England simultaneous with the creation of the office of sheriff. Though generally obsolete throughout the world, it remains theoretically, and sometimes practically, part of the United States legal system.
The term derives from the Latin posse comit?t?s, "power" or "force of the county", in English use from the late 16th century, shortened to posse from the mid 17th century. While the original meaning refers to a group of citizens assembled by the authorities to deal with an emergency (such as suppressing a riot or pursuing felons), the term is also used for any force or band, especially with hostile intent, often also figuratively or humorously. In 19th-century usage, posse comitatus also acquires the generalized or figurative meaning.
The powers of sheriffs in England and Wales for posse comitatus were codified by section 8 of the Sheriffs Act 1887, the first subsection of which stated that:
Every person in a county shall be ready and apparelled at the command of the sheriff and at the cry of the country to arrest a felon whether within a franchise or without, and in default shall on conviction be liable to a fine, and if default be found in the lord of the franchise he shall forfeit the franchise to the Queen, and if in the bailiff he shall be liable besides the fine to imprisonment for not more than one year, or if he have not whereof to pay the fine, than two years.
This permitted the (high) sheriff of each county to call every citizen to his assistance to catch a person who had committed a felony--that is, a serious crime. It provided for fines for those who did not comply. The provisions for posse comitatus were repealed by the Criminal Law Act 1967. The second subsection provided for the sheriff to take "the power of the county" if he faced resistance whilst executing a writ, and provided for the arrest of resisters. This subsection is still in force.
Every law enforcement officer is bound to execute the penal warrants given to him to execute. He may summon to his assistance, either in writing or orally, any of the citizens of the neighborhood or county to assist in the execution of such warrants. The acts of the citizens formed as a posse by such officer shall be subject to the same protection and consequences as official acts.
In a number of states, especially in the Western United States, sheriffs and other law enforcement agencies have called their civilian auxiliary groups "posses." The Lattimer Massacre of 1897 illustrated the danger of such groups, and thus ended their use in situations of civil unrest. Posse comitatus in America became not an instrument of royal prerogative, but an institution of local self-governance. The posse functioned through, rather than upon, the local popular will. From 1850 to 1878, the federal government had expanded its power over individuals. This was done to safeguard national property rights for slaveholders, emancipate millions of enslaved African Americans, and enforce the doctrine of formal equality. The rise of the federal state, like the marketplace before it, had created contradictory but congruous forces of liberation and compulsion upon individuals. 
In the early decades of the republic, before slavery became a major conflict, federal use of posse comitatus in the states was rare and sporadic. But the federal posse comitatus, quite literally, had compelled all of America to accept the legitimacy of slavery. In an exhaustive study of lynching in Colorado, historian Stephen Leonard defines lynching very broadly; he includes the people's courts and even posses (which by definition were led by sheriffs).  Indisputably, historical records link violent lawlessness, and even lynchings, to posse comitatus.
In the United States, a federal statute known as the Posse Comitatus Act, enacted in 1878, forbade the use of the United States Army, and through it, its offspring, the United States Air Force, as a posse comitatus or for law enforcement purposes without the approval of Congress. 
In 2013, a directive  from the Secretary of Defense directly addresses this issue: it prohibits the use of the United States Army, the United States Navy, the United States Air Force and the United States Marine Corps for law enforcement.
The limitation also does not apply to the National Guard when activated by a state's governor and operating in accordance with Title 32 of the U.S. Code (for example, National Guardsmen were used extensively by state governors during Hurricane Katrina response actions). Conversely, the limitation would apply to the National Guard when activated by the President and operating in accordance with Title 10 of the U.S. Code.[full ][improper synthesis?]
In response to the dispatch of militia by the Governor of Washington Territory Isaac Stevens to arrest Francis A. Chenoweth, the chief justice of the territory's Supreme Court who was holding court in the Pierce County Courthouse, the sheriff of Pierce County deputized 50 to 60 citizens for the defense of the court. The standoff between the posse and the militia was ultimately resolved by negotiation and the latter withdrew.
Marking the last "significant" use of a posse, in 1897 the sheriff of Luzerne County, Pennsylvania deputized 100 citizens to supplement 50 deputy sheriffs in confronting 400 striking mine workers at the Latimer Mines. Ensuing violence left 19 strikers dead.
In 1994, after violent bank robbers fled from Mineral County, Colorado into remote Hinsdale County, Colorado - which, at the time, had three full-time law enforcement officers for its 500 residents - the county's sheriff summoned the power of the county; more than 100 deputized citizens were directed in house to house searches for the fugitives. The robbers were killed as the posse closed on their location.
Following the Baltimore riot of 1968, 1500 lawsuits were filed against the city of Baltimore seeking compensation for damages sustained due to the failure of the police to suppress the unrest. The city sought declaratory judgment arguing that it could not be liable for any failures of the Baltimore municipal police, as it was an agency of the State of Maryland and the city had no law enforcement authority. In rejecting the argument, the Maryland Court of Appeals observed that Baltimore, as an independent city and - therefore - a county equivalent, was still in possession of the ability to summon the power of the county as that right had not explicitly been repealed by statute and, therefore, remained part of the common law. The court noted:
We are therefore of the opinion that the powers associated with that of a conservator of the peace and the power to form a "posse comitatus," which is included in the powers of a conservator of the peace, were powers available for employment by the City, through the Mayor, should the exercise of reasonable diligence have dictated that they be used.
Writing in the Journal of Criminal Law and Criminology, David Kopel observed that almost all U.S. states provide statutory authority for sheriffs, or other local officials, to summon the power of the county. In many cases, civil and criminal penalties are prescribed for members of the public who shirk posse duty when summoned; South Carolina provides that "any person refusing to assist as one of the posse . . . shall be guilty of a misdemeanor and, upon conviction shall be fined not less than thirty nor more than one hundred dollars or imprisoned for thirty days" while in New Hampshire a fine of "not more than $20" has been set.
... persons so appointed shall have authority to summon and call to their aid the bystanders or posse comitatus of the proper county, or such portion of the land or naval forces of the United States, or of the militia, as may be necessary to the performance of the duty with which they are charged ...