The environment of the central metal of a molecular machine-like copper rotaxane was observed by XAS experiments. The wheel of the rotaxane is a hetero-bischelating macrocycle containing both bidentate (phenanthroline) and terdentate (terpyridine) moieties. The axle of the assembly contains only a bidentate moiety. Applying an external chemical stimulus-oxidation of the metal-increases the number of coordinating atoms required by the metal template from 4 to 5. This variation is consistent with the oscillation of the wheel around the axle, leading thus to the most stable environment for the metal in the Cu(II) rotaxane.