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.
^Fifteenth Congress (February 24, 1819). "Anti-Piracy Act of 1819 ~ U.S. Senate Approval". Journal of the Senate of the United States of America, 1789-1873. VIII (Wednesday, February 24th, 1819). U.S. Library of Congress: 303.