>>5027546"The most accurate possible answer is coincidence. Both flags have their most remote precedent at about the same time, the Italian flag in about 1797 (or 1794), while the Mexican “Trigarante” flag was designed in 1821 and did not draw inspiration from the different “tricolore” Italian flags of the time.
But as the question states, they are similar, but not alike, since the colors in the Mexican flag are darker, and its proportions are longer, 4:7 vs. 2:3 of the Italian Flag. Plus, the Mexican Flag has the Mexican Coat of Arms." ~some guy on Quora