A prison is a secure facility designed to confine individuals who have been convicted of criminal offenses. These facilities are operated by governmental authorities and are intended to both punish offenders and protect society from further harm. Inmates in prisons are typically confined to their cells for a significant portion of the day and may engage in work or educational programs as part of their rehabilitation.