When did Mexico gain independence from France?

The French stopped their invasion of Mexico starting in 1966, largely due to the US's involvement. In 1967, the independent Mexican government was re-established.