With the invasion of Italy by Napoleon the Lucchese state was turned into a principality whose sovereignty was given to Felice Baciocchi, although the real power was in the hands of Napoleon's older sister, Elisa. Elisa's government was characterised by unpopular measures such as those against the ecclesiastic patrimony. Similarly, most of her financial policies were of dubious effect, although some were welcomed by the locals, such as the adoption of the "Napoleonic Code", the adoption of the metric system, the introduction of mandatory vaccination against smallpox.