The Old Jail in Barnstable is a historic wooden jail, resembling a colonial domestic residence, which was built by order of the newly established Barnstable County, which separated from the Plymouth Colony on in 1685. It served as the Barnstable County jail from 1690 to 1820 and is the oldest extant wooden jail in the United States! By 1702, prisoners were being held in the jail while awaiting trial at the Court Sessions held in Barnstable. In 1716, the jail imprisoned Mehitable “Goody” Hallett, the lover of pirate Samuel Bellamy, later known as the Witch of Wellfleet, as well as the two survivors of Sam Bellamy’s flagship Whydah Gally which wrecked at Wellfleet, and the seven pirate survivors of his consort ship Mary Anne which wrecked ten miles south. The jail house is considered one of the most haunted in America, supposedly containing the spirits of these pirates and lost loves. The jail building was attached to a barn by the 19th century, when a new jail was constructed. This building was later removed from the barn and restored, and moved to the present site next to the old Customs House in 1968.