France's constant warfare with the combined forces of different combinations of, and eventually all, of the other major powers of Europe for over two decades finally took its toll. By the end of the Napoleonic Wars, France no longer held the role of the dominant power in Continental Europe, as it had since the times of Louis XIV, as the Congress of Vienna produced a "balance of power" by resizing the main powers so they could balance each other and remain at peace. In this regard, Prussia was restored in its former borders, and also received large chunks of Poland and Saxony. Greatly enlarged, Prussia became a permanent Great Power. In order to drag Prussia's attention towards the west and France, the Congress also gave the Rhineland and Westphalia to Prussia. These industrial regions transformed agrarian Prussia into an industrial leader in the nineteenth century. Britain emerged as the most important economic power, and its Royal Navy held unquestioned naval superiority across the globe well into the 20th century.