Even volunteers who came in to perform specific functions (such as the prison chaplain) found themselves behaving as if they were in a prison rather than a psychological study
The Stanford Prison Experiment showed that social roles can have a strong influence on individuals' behaviour, causing them to conform to the expected behaviours of that role