The Embargo Act failed because

Spain replaced the loss of U.S. trade with increased trade in South America.

the Federalist party rallied against it.

it caused American merchants to lose money

the Democratic-Republicans changed their position