On 18 Jun 1812, The United States of America declared war on Canada and decided to invade. The Americans had a bee in their bonnet about something or other with the British and since England was so far away they thought they give Canada a good thrashing.
2 years later in September 1814, Canada had had enough. They marched on Washington, destroying everything in their path and set the White House on fire.
It has been the only time since the Revolutionary War that a foreign power has captured and occupied the US Capital. Unless you count Obama.
I guess it has worked because this war is also the origin of the lines about “the rockets’ red glare” and “the bombs bursting in air” from the US national anthem. Notice that America has never declared war on Canada since?