Solitary confinement is a punishment in which a prisoner is denied contact with any other persons.