The Salem witch trials formally ended in May 1693 when Governor William Phips pardoned everyone who was in custody under conviction or suspicion of witchcraft. The special witchcraft court was disbanded by October 1692, and a new court that did not allow spectral evidence was established to try remaining cases. This marked the end of the trials, which had begun in June 1692 and resulted in 19 people being hanged and others imprisoned or dying in custody.