Although Democratic-Republicans maintained control of the presidency (under James Madison) and Congress, Federalists made gains in the House, mainly due to the unpopularity of the Embargo Act of 1807. As a result, voters in New England, who had ties to the shipping industry, overwhelmingly chose to send Federalists to Washington.