After a series of major defeats and an escalating threat from Prussia, France began pulling troops out of Mexico in late 1866.