If the Napoleonic Wars were your model, then it was obvious that the Confederacy lost in 1865: Its capital fell, its commander surrendered, its president was jailed, and its territories were occupied by the opposing army. If that’s not defeat, what is?
But now we have a better model than Napoleon: Iraq.
After the U.S. forces won on the battlefield in 1865 and shattered the organized Confederate military, the veterans of that shattered army formed a terrorist insurgency that carried on a campaign of fire and assassination throughout the South until President Hayes agreed to withdraw the occupying U. S. troops in 1877. Before and after 1877, the insurgents used lynchings and occasional pitched battles to terrorize those portions of the electorate still loyal to the United States. In this way they took charge of the machinery of state government, and then rewrote the state constitutions to reverse the postwar changes and restore the supremacy of the class that led the Confederate states into war in the first place.
~ Doug Muder