In 1805, the Italian Republic became the Kingdom of Italy with its capital in Milan. On 26 May 1805, the Iron Crown was in Milan for the coronation of Napoleon Bonaparte, who put it on his head, uttering the famous phrase "God gave it to me, woe to anyone who touches it." Napoleon also established the Order of the Iron Crown. Monza received the title of Imperial City. The Viceroy of Italy, Eugene de Beauharnais, was appointed in August 1805 and he settled in the Villa of Monza. In 1807 the castle was demolished.