The term optopharmacology refers to activation or deactivation of drugs in response to an external light source. Compounds that can be activated by light include Caged Compounds and Photoswitchable Ligands, and enable the pharmacological manipulation of receptors, ion channels and other proteins with a high degree of spatial and temporal control, in order to probe their function.