Only after the 1848 Revolution swept away the July Monarchy, establishing the Second Republic in its place, did Haussmann's fortunes change. Louis-Napoleon Bonaparte, the nephew of Napoleon Bonaparte, became the first elected president of France in 1848. Haussmann travelled to Paris in January 1849 to meet the Minister of the Interior and the new president. He was deemed to be a loyal holdover from the civil service of the July Monarchy, and shortly after their meeting Louis Napoléon granted Haussmann a promotion to prefect of the Var Department at Draguignan. He became prefect of the Yonne Department in 1850, and in 1851 was appointed as prefect of the Gironde out of Bordeaux.