The liberals won the war, but the war left the country weak, and it was soon followed by the French intervention, and the establishment of the Second Mexican Empire with Maximilian I of Austria as emperor (1864-1867).