Maximilian ruled as the Emperor of Mexico from 1864 to 1867. He was installed by occupying French forces under Napoleon III. When the French left in 1867, Maximilian refused to go with them, believing he had the support of the people.