On this date in 1797, President John Adams signed the Treaty of Tripoli, which had been unanimously approved by the U.S. Senate on June 7. It secured commercial shipping rights and protected American ships in the Mediterranean Sea from Barbary pirates. The area encompassed what later became the nation of Libya. Joel Barlow negotiated and translated the document for the U.S.