In 1812, Madison sent a request to Congress for a declaration of war. The War of 1812 was a debacle. In October 1814, the Massachusetts legislature passed a peace resolution and threatened secession from the Union. Only the signing of the Treaty of Ghent at the end of 1814 ended talk of a New England separatist movement.