The Crucible is based on the 1692 Salem witch trials, where over 200 were accused and 20 executed. Arthur Miller wrote it as an allegory for McCarthyism—the 1950s anti-communist witch hunt that ruined many innocent lives. The play explores mass hysteria, guilt, and the danger of blind accusations.