Danvers is a town in Essex County, Massachusetts, United States, located on the Danvers River near the northeastern coast of Massachusetts. The suburb is a fairly short ride from Boston and is also in close proximity to the renowned beaches of Gloucester and Revere. Originally known as Salem Village, the town is most widely known for its association with the 1692 Salem witch trials. It was also the site of Danvers State Hospital, one of the state's 19th-century psychiatric hospitals. Danvers is a local center of commerce, hosting many car dealerships and the Liberty Tree Mall. As of the 2020 United States Census, the town's population was 28,087.