Prison life can be challenging for inmates. When sentenced to prison for serious crimes, the length of the inmate's sentence is determined by the maximum penalty for the crime and prison is considered necessary if the crime is too serious for alternative punishment or if the offender needs to be protected from the public. Once in prison, inmates face personal and social issues and challenges reintegrating into society after their release.