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 people who violated federal law (U.S., Mexico), people 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]