The military system was completely reformed, serfdom was abolished, municipal institutions were fostered, the civil service was thrown open to all classes, and great attention was devoted to the educational needs of every section of the community. When at last the time came to put these reforms to the test, after the Moscow campaign of 1812, it was Hardenberg who persuaded Frederick William to take advantage of General Yorck's loyal disloyalty and declare against France. He was rightly regarded by German patriots as the statesman who had done most to encourage the spirit of national independence; and immediately after he had signed the first peace of Paris he was raised to the rank of prince (June 3, 1814) in recognition of the part he had played in the War of Liberation.