Act to Protect the Commerce of the United States and Punish the Crime of Piracy

An Act to protect the commerce of the United States and punish the crime of piracy is an 1819 United States federal statute against piracy, amended in 1820 to declare participating in the slave trade or robbing a ship to be piracy as well. The last execution for piracy in the United States was of slave trader Nathaniel Gordon in 1862 in New York, under the amended act.
Background.
The original act, passed in 1819, was officially known as "An act to protect the commerce of the United States and punish the crime of piracy" (), and provided in section 5, "That if any person or persons whatsoever shall, on the high seas, commit the crime of piracy, as defined by the law of nations, and such offender or offenders shall afterwards be brought into or found in the United States, every such offender or offenders shall, upon conviction thereof... be punished by death." Section 6 set the act to expire at "the end of the next session of Congress."
This original 1819 act was amended by "An Act to continue in force 'An act to protect the commerce of the United States and punish the crime of piracy', and also to make further provisions for punishing the crime of piracy" (), sometimes known as the "1820 Piracy Law." It extended the original act to two years afterward and then to the end of the next session of Congress after that.
It also added three types of piracy:
The act was made "perpetual" by the 17th United States Congress ().
James Smith trial of 1854.
In November 1854, New York County District Attorney John McKeon arraigned James Smith, the captain of the American ship "Julia Moulton," for having violated the Anti-Piracy Act of 1820 by hauling 645 slaves from Ambriz to the island of Trinidad. Despite his protestations that his real name was Julius Schmidt, a native of Hanover, Germany, and not a naturalized American citizen and thus not subject to American law, Smith became the first person to be convicted under the 1820 provisions, which called for a death sentence.
Upon appeal a mistrial was declared, based upon various legal technicalities, and Smith was released from jail after he had served 32 months.
Nathanial Gordon trial of 1862.
Nathaniel Gordon was the only American slave trader to be tried, convicted, and executed "for being engaged in the Slave Trade" under this law. He was hanged in New York on February 21, 1862.