First Consul Napoleon Bonaparte moved into the Tuileries Palace on 19 February 1800 and immediately began to re-establish calm and order after the years of uncertainty and terror of the Revolution. He made peace with the Catholic church by signing the Concordat of 1801 with Pope Pius VII; masses were held again in all churches in Paris (and in the whole of France), priests were allowed to wear ecclesiastical clothing again, and churches were permitted to ring their bells.[102] To re-establish order in the unruly city, he abolished the elected position of the Mayor of Paris, and replaced it with a Prefect of the Seine appointed by him on 17 February 1800. The first prefect, Louis Nicolas Dubois, was appointed on 8 March 1800 and held his position until 1810.