 In 1867 with the defeat of the monarchy and execution of Emperor Maximilian, the republic was restored and Juárez reelected.He continued to implement his reforms.In 1871, he was elected a second time, much to the dismay of his opponents within the Liberal party, who considered reelection to be somewhat undemocratic.