The action or function of putting a person in a jail, prison, or other place of confinement, usually, but not always, according to legal procedures.