After the Duchy of Lorraine passed under the rule of the French crown, the palace was handed over to the military who used it largely as a barrack.
After the Duchy of Lorraine became part of France, the palace was assigned to the military and used predominantly as a barracks.