Arthur Miller wrote "The Crucible" as a response to the McCarthy era's witch hunts, drawing parallels between the Salem witch trials of 1692 and the contemporary climate of paranoia and scapegoating. It critiques mass hysteria, moral integrity, and the dangers of ideological extremism, encouraging audiences to resist such influences.