The War of 1812 was poorly fought by America due to divisions within the country and poor military leadership. However, the war gave Americans a renewed sense of national identity. While the British won more battles, they could not conquer the vast American territory. The Treaty of Ghent ended the war in 1814 without either side gaining territory. The war strengthened American manufacturing and helped unify the country after its conclusion, marking a second war for American independence.