Just prior to James Madison's assumption of office, Congress passed the Non-Intercourse Act of 1809, which replaced Jefferson's failed embargo. It allowed the resumption of world trade with the exclusion of trade with England and France, thus barring French and British vessels from American ports.