Mexico was occupied by France during the American Civil war.
Spain. Later Mexico was occupied by France but won that war too.
Mexico. Shortly after the Civil War ended, Mexico threw the French out.
France vs. Mexico
During the course of the US Civil War, France set up a "kingdom" in Mexico. After the war, the United States demanded that France evacuate Mexico and placed an army on the Mexican - US border.
As long as France was involved with an insurrection in Mexico, it could not intervene on the side of the South.
Mexico won. Cinco de mayo!
Which war - France has been in many.
It was the other way around: France began its attack against Mexico on December 8, 1861.
world war2-x
Most wars in Mexico have been of internal nature, or imposed upon Mexico by foreign powers, such as the United States and France. The only notable exception was on WW2, when Mexico fought for the Allies against Japanese forces on the Pacific.
Mexico won. On June 19, 1867 Maximilian I and his top generals were executed on Queretaro, Mexico.