The reversible light-driven dethreading-rethreading of a pseudorotaxane is obtained in solution by exploiting the (E)-(Z) photoisomerisation of azobenzene, and monitored through fluorescence signals.