The War of 1812 didn't gain America much, as a country. It didn't address the complaints that led the Americans to declare war in the first place. We didn't conquer Canada. But we did gain a certain amount of what can be called our "national identity" after the war. Right at the heart of this was a new patriotic (and popular) song.