A prison, also known as a jail, gaol, penitentiary, detention center, correction center, correctional facility, remand center, hoosegow, or slammer is a facility where people are imprisoned against their will and denied their liberty under the authority of the state, generally as punishment for various crimes. Authorities most commonly use prisons within a criminal-justice system: people charged with crimes may be imprisoned until their trial; those who have pled or been found guilty of crimes at trial may be sentenced to a specified period of imprisonment.