He asked for volunteers and assigned them to guard/prisoner roles using a coin flip. He told them they would be in the study for two weeks, gave them uniforms and told them to not refer to it as a study to make it feel more realistic and had set up a fake prison to observe their behaviours in.