The French occupation and reign of Emperor Maximilian during the 1860s was difficult for Tamaulipas, at least on the borders and in the city of Tampico. Portions of Tamaulipas supported the republican forces led by President Benito Juarez in resisting the French, especially in the north. Two years after French occupation began, Tamaulipas as a state finally acceded to Maximilian's rule, and the last French soldiers left the state in 1866, leading up to Maximilian's execution and fall of the Second Mexican Empire in 1867.