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, people considered dangerous, or those sentenced to longer terms of imprisonment.