The "battle of French vs. Mexico" most likely refers to the Pastry War (Guerra de los Pasteles), the First French Intervention in Mexico, which lasted from April 1838 to March 1839—about 185 years ago as of 2024.
The conflict began over claims by French nationals (including a pastry chef, Monsieur Remontel) for damages to their property during Mexican civil unrest. France demanded 600,000 pesos in reparations—a huge sum for the young republic. When Mexico refused, France blockaded Mexican ports and bombarded the fortress of San Juan de Ulúa at Veracruz.
The whimsical name comes from the pastry chef's claim, but the war was a serious exercise in gunboat diplomacy that humiliated Mexico and demonstrated European willingness to use force for commercial claims.