The year 1804 brought him the delight of his first important command. In February he was appointed chief of the corps of the Army of the Ocean which was stationed in Holland. He entered on his task with his usual fervour. His first step was to make friends with all the Dutch officials, and thus to secure the smooth working of his commissariat and supply departments; then he turned to the actual training of his troops. For this purpose he obtained permission to hold a big camp of instruction, where all the divisions of his corps were massed. So successful was this experiment that it became an annual institution. But amid all the pleasure of this congenial work came the bitter moment when he found the name of so mediocre a soldier as Bessières included in the list of the new Marshals and his own omitted. It was a sore blow, and his appointment as colonel-general of the horse chasseurs and Grand Eagle of the Legion of Honour did little to mitigate it. The Emperor, careful as ever to stimulate devotion, later explained to him that a dashing officer like himself would have plenty of opportunities of gaining distinction, while this was Bessières's only chance. But in spite of this the neglect rankled, and from that day he was no longer the blindly devoted follower of Napoleon.
On the outbreak of the Austrian War Marmont's corps became the second corps of the Grand Army. In the operations ending in Ulm the second corps formed part of the left wing. After the capitulation it was detached to cover the French communications from an attack from the direction of Styria. In the summer of the following year Marmont was despatched as commander-in-chief to Dalmatia, where he spent the next five years of his life. Dalmatia had been ceded to France by the treaty of Pressburg. In Napoleon's eyes the importance of the province lay in the harbour of Cattaro, which he regarded as an outlet to the Balkan Peninsula. His intention was to get possession of Montenegro, to come to an understanding with Ali Pacha of Janina and the Sultan, and oppose the policy of Russia. But the Russians and Montenegrins had seized Cattaro, and were threatening to besiege Ragusa. It was to meet this situation that the Emperor in July, 1806, hastily sent his former favourite to Dalmatia. The new commander-in-chief found himself, as in Egypt, faced with the difficulty of supply. Half the army was in hospital from want of proper nourishment and commonsense sanitation. Having, by his care of his men, refilled his battalions, he advanced boldly on the enemy, and drove them out of their positions. This punishment kept the Montenegrins quiet for the future, and the Russians fell back on Cattaro. From there he was unable to drive them owing to the guns of their fleet, and it was not till the treaty of Tilsit that the French got possession of the coveted port. The French commander's chief difficulty in administering his province was that which is felt in all uncivilised countries, the difficulty of holding down a hostile population where roads do not exist. Otherwise his just but stern rule admirably suited the townsmen of the little cities on the coast, while order was kept among the hill tribes by making their headmen responsible for their behaviour, and by aiding them in attacking the Turks, who had seized certain tracts of territory and maltreated the inhabitants. But it was not gratitude which kept the hill-men quiet, so much as the miles of new roads on which the French commander employed his army when not engaged on expeditions against restless marauders. During his years in the Dalmatian provinces Marmont constructed more than two hundred miles of roads, with the result that his small force was able with ease to hold down the long narrow mountainous province by the speed with which he could mobilise his punitive expeditions. Moreover, owing to the increased means of traffic the peasants were able to find a market for their goods, and the prosperity of the country increased beyond belief. With prosperity came contentment: manufactures were established, and the mines and the other natural resources of the country were exploited to advantage. As the Emperor of Austria said to Metternich in 1817, when visiting the province, "It is a great pity that Marshal Marmont was not two or three years longer in Dalmatia."
The years spent at Ragusa were probably the happiest of Marmont's life. His successful work was recognised in 1808, when the Emperor created him Duke of Ragusa. Each day was full of interest. He was head of the civil administration and of the judicial and fiscal departments. As commander-in-chief he was responsible for the health, welfare, and discipline of the troops, and for the military works which were being erected to protect the province from Austrian aggression. He had his special hobby—the roads. Yet in spite of all this business he found time to put himself in the hands of a tutor and to work ten hours a day at history, chemistry, and anatomy. To aid him in his studies he collected a travelling library of six hundred volumes which accompanied him in all his later campaigns.
The Austrian campaign of 1809 called him from these congenial labours to the even more congenial operations of war. The duty of the Army of Dalmatia was to attempt to cut off the Archduke John on his retirement from Italy; but the Duke of Ragusa had not sufficient troops to carry out this operation successfully, although he effected a junction with the Army of Italy. After a succession of small engagements the united armies found themselves on the Danube in time to take part in the battle of Wagram. In reserve during the greater part of the battle, Marmont's corps was entrusted with the pursuit of the enemy. Unfortunately, either from lack of appreciation of the situation or from jealousy, their commander refused to allow Davout to co-operate with him, and consequently, although he overtook the Austrians, he was not strong enough to hold them till other divisions of the army came up. However, at the end of the operations Napoleon created him Marshal. But the Duke of Ragusa's joy at receiving this gift was tempered by the way it was given. For the Emperor, angry doubtless at the escape of the Austrians, told him, "I have given you your nomination and I have great pleasure in bestowing on you this proof of my affection, but I am afraid I have incurred the reproach of listening rather to my affection than to your right to this distinction. You have plenty of intelligence, but there are needed for war qualities in which you are still lacking, and which you must work to acquire. Between ourselves, you have not yet done enough to justify entirely my choice. At the same time, I am confident that I shall have reason to congratulate myself on having nominated you, and that you will justify me in the eyes of the army." Unkind critics of the three new Marshals created after Wagram said that Napoleon, having lost Lannes, wanted to get the small change for him, but it is only fair to remember that though Macdonald, Marmont, and Oudinot were all inferior to Lannes, they were quite as good soldiers as some of the original Marshals.
After peace was declared the new Marshal returned to Dalmatia and took up the threads of his old life. He had won the respect of the inhabitants and the fear of their foes, the Turks, and save for an occasional expedition against the brigands or friction with the fiscal officials, his time passed peaceably and pleasantly. But in 1811 he was recalled to Paris to receive orders before starting on a new sphere of duty. Masséna, "the spoiled child of victory," had met his match at Torres Vedras, and Napoleon, blaming the man instead of the system, had determined to try a fresh leader for the army opposing Sir Arthur Wellesley. The Emperor did not hide from himself the fact that in selecting Marmont he was making an experiment, for he told St. Cyr that he had sent Marmont to Spain because he had plenty of talent, but that he had not yet tested to the full his force of character, and he added, "I shall soon be able to judge of that, for now he is left to his own resources." The new commander of the Army of Portugal set out with the full confidence that the task was not beyond his powers, and with the promise of the viceroyalty of one of the five provinces into which Spain was to be divided. He arrived at the front two days after the battle of Fuentes d'Onoro, and found a very different state of affairs from what he had expected. The country was a howling waste covered with fierce guerillas. The French army, so long accustomed to success, was absolutely demoralised by repeated disappointments and defeats. It was necessary to take stringent measures to restore the morale of the troops before he could call on them to face once more "the infantry whose fire was the most murderous of all the armies of Europe."
Accordingly he withdrew from the Portuguese frontier, put his army into cantonments round Salamanca, and set to work on the difficult task of collecting supplies from a country which was already swept bare. Meanwhile he split up his army into six divisions, established direct communications between himself and the divisional officers, and, to get rid of the grumblers, gave leave to all officers, who so desired, to return to France. At the same time he distributed his weak battalions among the other corps so that each battalion had a complement of seven hundred muskets. He also broke up the weak squadrons and batteries and brought up the remainder to service strength. Scarcely was this reorganisation completed when Soult, who had been defeated at Albuera, called on Marmont to aid him in saving Badajoz. In spite of his personal dislike for the Duke of Dalmatia, the Marshal hurried to his aid and for the time the important fortress was saved. During the rest of the summer the Army of Portugal lay in the valley of the Tagus, holding the bridge of Almaraz, and thus ready at any moment to go to the relief of Badajoz or Ciudad Rodrigo, the two keys of Portugal. When, in the autumn, Wellington threatened Ciudad Rodrigo, the Marshal, calling to his aid Dorsenne, who commanded in Northern Spain, at the successful engagement of El Bodin drove back the advance guard of the Anglo-Portuguese and threw a large quantity of provisions into the fortress.
The year 1812 was a disastrous one for the French arms all over Europe. The Emperor attempted to direct the Spanish War from Paris. In his desire to secure all Southern Spain, he stripped Marmont's army to reinforce Suchet in his conquest of Valencia. Accordingly in January the Marshal was powerless to stop Wellington's dash at Ciudad Rodrigo, and was unable later to make a sufficient demonstration in Portugal to relieve the pressure on Badajoz; so both the fortresses fell, and the Duke of Ragusa was blamed for the Emperor's mistake. He was thereafter called upon to try to stem the victorious advance of the English into Spain. Short of men, of horses, and of supplies, he did wonders. Thanks to his strenuous efforts, supplies were massed at Salamanca, good food and careful nursing emptied the hospitals and filled the ranks, and the cavalry was supplied with remounts by dismounting the "field officers" of the infantry. The month of July saw an interesting duel round Salamanca between Marmont and Wellington. The two armies were very nearly equal in numbers, the French having forty-seven thousand men and the English forty-four thousand. The French had the advantage of a broad base with lines of retreat either on Burgos or Madrid. The English had to cover their single line of communication, which ran through Ciudad Rodrigo. The French had the further advantage that their infantry marched better than the English. Owing to these causes their commander was so far able to outgeneral his adversary that by July 22nd he was actually threatening the English line of retreat. But a tactical mistake threw away all these strategic advantages. In his eagerness he allowed his leading division to get too extended, forgetting that he was performing the dangerous operation of a flank march. Wellington waited till he saw his opportunity and then threw himself on the weak French centre and cut the French army in half, thus proving his famous dictum that the great general is not he who makes fewest mistakes, but he who can best take advantage of the mistakes of his enemy. Marmont saw his error as soon as the English attack began, but a wound from a cannon ball disabled him at the very commencement of the action. This injury to his arm was so serious that he had to throw up his command and return to France, and for the whole of the next year he had to wear his arm in a sling.
Napoleon, furious with the Marshal for his ill-success, most unjustly blamed him for not waiting for reinforcements: these actually arrived two days after the battle. Joseph, however, had told him distinctly that he was not going to send him any help, and if it had not been for his tactical blunders, Marmont would undoubtedly have caused Wellington to fall back on Portugal. But in 1812 the exigencies of war demanded that France should send forth every soldier, and accordingly in March the Duke of Ragusa was gazetted to the command of the sixth corps, which was forming in the valley of the Maine. On taking up this command he found that his corps was mainly composed of sailors drafted from the useless ships, and of recruits, while his artillery had no horses and his cavalry did not exist. With these raw troops he had to undergo some difficult experiences at Lützen and Bautzen, but, as the campaign progressed, he moulded them into shape, and his divisions did good service in the fighting in Silesia and round Dresden. At the rout after the battle of Leipzig, Marmont, like most of the higher officers of the army, thought more of his personal safety than of his honour, and allowed himself to be escorted from the field by his staff officers.
But in the campaign of 1814 he made amends for all his former blunders, and his fighting record stands high indeed. At Saint-Dizier, La Rothière, Arcis-sur-Aube, Nogent, Sézanne, and Champaubert, he held his own or defeated the enemy with inferior numbers in every case. Once only at Laon did he allow himself to be surprised. When the end came it was Marmont who, at Joseph's command, had to hand over Paris to the Allies. Thereafter he was faced with a terrible problem. His army was sick of fighting, officers and men demanded peace. He had to decide whether his duty to Napoleon was the same as his duty to France. Unfortunately he acted hurriedly, and, without informing the Emperor, entered into negotiations with the enemy. The result was far-reaching, for his conduct showed Alexander that the army was sick of war and would no longer fight for Napoleon. It thus cut away the ground of the Commissioners who were trying, by trading on the prestige of the Emperor and the fear of his name, to persuade the Czar to accept Napoleon's abdication on behalf of his son, the King of Rome. The Marshal's enemies put down his action to ill-will against the Emperor for withholding for so long the marshalate and for his treatment after Salamanca. But Marmont asserted that it was patriotism which dictated his action, and further maintained that Napoleon himself ought to have approved of his action, quoting a conversation held in 1813. "If the enemy invaded France," said the Emperor, "and seized the heights of Montmartre, you would naturally believe that the safety of your country would command you to leave me, and if you did so you would be a good Frenchman, a brave man, a conscientious man, but not a man of honour."
The defection of the Duke of Ragusa came as a bitter blow to Napoleon. "That Marmont should do such a thing," cried the fallen Emperor, "a man with whom I have shared my bread, whom I drew out of obscurity! Ungrateful villain, he will be more unhappy than I." The prophecy was true. The Duke of Ragusa stuck to the Bourbons and refused to join Napoleon during the Hundred Days, going to Ghent as chief of the military household of the exiled King. He returned with Louis to Paris, and was made major-general of the Royal Guard and a peer of France, in which capacity he sat as one of the judges who condemned Ney to death. But men looked askance at him, and from 1817 he lived in retirement, occupying his leisure in experimental farming, with great injury to his purse, for his elaborate scheme of housing his sheep in three-storied barns and clothing them in coats made of skin was most unprofitable. Retirement was a bitter blow to the keen soldier, but the Bourbon monarchs clearly understood that the deserter of Napoleon and the judge of Marshal Ney could never be popular with the army.