A reversible nanoswitch as an ON-OFF photocatalyst.