https://en.wikipedia.org/wiki/The_Crucible
Arthur Miller's play the Crucible covers the story about the witch trial.
Historical accuracy
"...In 1953, the year the play debuted, Miller wrote, "The Crucibleis taken from history. No character is in the play who did not take a similar role in Salem, 1692."[14] This does not appear to be accurate as Miller made both deliberate changes and incidental mistakes. Abigail Williams' age was increased from 11 or 12[15] to 17, probably to add credence to the backstory of Proctor's affair with Abigail. John Proctor himself was 60 years old in 1692, but portrayed as much younger in the play, for the same reason.[16][17]
Miller claimed, in A note on the historical accuracy of this play, that "while there were several judges of almost equal authority, I have symbolized them all in Hathorne and Danforth".[16] However, this conflates Danforth with the historical and extremely influential figure of William Stoughton, who is not a character and is only briefly mentioned in the play. Both men were subsequent Deputy Governors, but it was Stoughton (who, alone among the judges, was a bachelor who never married[18]) who ordered further deliberations after the jury initially acquitted Rebecca Nurse. He refused to ever acknowledge that the trials had been anything other than a success, and was infuriated when Governor Phips (whose own wife, somehow, had been named as a possible witch) ended the trials for good and released the prisoners..."