On December 22, 1807, the Embargo Act was passed at the urging of President Thomas Jefferson. The Act barred trade with any foreign nations in an effort to avoid American entry into the Napoleonic Wars of Europe. However, the Act proved unenforceable and was replaced with the Non-Intercourse Act, which barred trade with France and Great Britain.
Learn more about the Embargo Act of 1807 from Monticello.org