Arthur Miller uses allegory in his play, The Crucible, to show the similarities between the Salem witch trials and the Red Scare. During the McCarthy era, freedom was a very important aspect in life; during the Salem witch trials, religion was a very important aspect of life. In both of these events, people are frightened.
hope this helps :)