 France never made a profit in Mexico and its Mexican expedition grew increasingly unpopular.Finally in the spring of 1865, after the US Civil War was over, the US demanded the withdrawal of French troops from Mexico.Napoleon III quietly complied.