What was the Salem Witch Trials?

This was a famous trial held back in 1692, in Salem Massachusetts. 19 people were accused of witchcraft which back then could have been something common like practicing medicine could be considered witchcraft.