The Napoleonic Wars were therefore ones in which Britain invested large amounts of capital and resources to win. When was Napoleon finally defeated?