A federal prison is operated under the jurisdiction of a federal government as opposed to a state or provincial body. Federal prisons are used for convicts who violated federal law (U.S., Mexico), inmates considered dangerous (Brazil), or those sentenced to longer terms of imprisonment (Canada). Not all federated countries have a legal concept of "federal prison"[citation needed].