Answer
Captain William Kidd, a Scottish sailor from the 17th century, met his demise through a public hanging. Kidd, initially renowned as a privateer authorized by the English government to combat piracy, found himself entangled in a web of deceit when he deviated from his mission and engaged in acts of piracy himself. His illicit actions led to his capture and subsequent trial in London's Old Bailey court.