Despite his family's situation, Melzi d'Eril had the opportunity to frequent exclusive Milanese circles, where he met prominent Lombard Enlightenment thinkers such as
Pietro Verri,
Cesare Beccaria,
Giuseppe Parini, and
Ippolito Pindemonte. He also had the opportunity to travel abroad and become knowledgeable about the emerging, Enlightenment-influenced European political systems as well as the English parliamentary system. In this context, he developed a
liberalist view and sympathized with the
French Revolution, although this was later mitigated by his disapproval of the radical, anti-religious developments the Revolution would bring about. He also thoroughly embraced the cause of the
Italian unification.
Descent of Napoleon in Italy Melzi d'Eril's attitude towards
Napoleon was as mixed as that he had had towards the French Revolution. When Napoleon began his Italian campaign, and entered Milan, Melzi d'Eril first supported the new rule, participating in the government of the
Cisalpine Republic. Later on, when he realized that Napoleon had no interest in the unity of Italy, Melzi d'Eril retired and eventually moved abroad. After the
Battle of Marengo (1800), Melzi was invited to France to participate in the definition of the new political order for Italy. When the
Italian Republic was founded, with Napoleon as the head of state, Melzi d'Eril was named vice-president. In the three years of the Italian Republic, Melzi d'Eril largely contributed to the development of the Republic as well as the renewal of the city of Milan, which was chosen as the capital of the new kingdom. Nevertheless, when the
Kingdom of Italy was proclaimed in 1805, Napoleon chose
Eugène de Beauharnais as his governor, and Melzi d'Eril was somehow set aside from the new government. As a compensation of sorts, he was made Duke of
Lodi. He thus retired but remained a strong supporter of the
autonomy of Italy and a frank critic of the Napoleonic rule. == Later years ==