The Stanford prison experiment (SPE) was a controversial psychological experiment performed in August 1971 at Stanford University.