The most evident reason Arthur Miller penned The Crucible (or any work, for that matter) is that he had a narrative to convey. Without that narrative, he likely wouldn’t have been inspired to write. However, what compelled him to craft this particular narrative is deeply personal.
As a Jewish man, Miller championed political causes opposing racial injustices in America, and he openly supported labor movements and unions. His vocal stance made him a target for Senator Joseph McCarthy and others determined to eliminate Communism.
Miller had to testify before the House Committee on Un-American Activities due to his associations but refused to implicate his friends. This experience, a broad and indiscriminate targeting of anything remotely related to Communism without proper evidence, motivated him to explore the Salem Witch trials in his work.
Later in an interview, Miller remarked:
I likely wouldn’t have thought to write a play about the Salem witch trials of 1692 had I not noticed remarkable parallels between that disaster and the events in America during the late 1940s and early 1950s. My fundamental need was to address a phenomenon that, with little exaggeration, could be said to have paralyzed an entire generation and swiftly eradicated the habits of trust and tolerance in public dialogue.
However, the deeper he delved into the historical tragedies of Salem, the more he realized that McCarthy's pursuit of Communists paled in comparison to the fanatical fervor that dominated Salem in the 1690s.