The Embargo Act of 1807 was an attempt by President Thomas Jefferson and the U.S. Congress to prohibit American ships from trading in foreign ports. It was intended to punish Britain and France for interfering with American trade while the two major European powers were at war with each other.