The military and theatrical worlds of the First French Empire were a revelation to Beyle. He was named an auditor with the Conseil d'État on 3 August 1810, and thereafter took part in the French administration and in the Napoleonic wars in Italy. He travelled extensively in Germany and was part of Napoleon's army in the 1812 invasion of Russia.
Stendhal witnessed the burning of Moscow from just outside the city. He was appointed Commissioner of War Supplies and sent to Smolensk to prepare provisions for the returning army. He crossed the Berezina River by finding a usable ford rather than the overwhelmed pontoon bridge, which probably saved his life and those of his companions. He arrived in Paris in 1813, largely unaware of the general fiasco that the retreat had become. Stendhal became known, during the Russian campaign, for keeping his wits about him, and maintaining his "sang-froid and clear-headedness." He also maintained his daily routine, shaving each day during the retreat from Moscow.
After the 1814 Treaty of Fontainebleau, he left for Italy, where he settled in Milan. He formed a particular attachment to Italy, where he spent much of the remainder of his career, serving as French consul at Trieste and Civitavecchia. His novel The Charterhouse of Parma, written in 52 days, is set in Italy, which he considered a more sincere and passionate country than Restoration France. An aside in that novel, referring to a character who contemplates suicide after being jilted, speaks about his attitude towards his home country: "To make this course of action clear to my French readers, I must explain that in Italy, a country very far away from us, people are still driven to despair by love."
The Private Diaries of Stendhal
1954 Doubleday & Company NY