Switchable catalysis with a light-responsive cavitand.