Azobenzene photoswitches confer light sensitivity onto retinal ganglion cells (RGCs) in blind mice, making these compounds promising candidates as vision-restoring drugs in humans with degenerative blindness. Remarkably, photosensitization manifests only in animals with photoreceptor degeneration and is absent from those with intact rods and cones. Here we show that P2X receptors mediate the entry of photoswitches into RGCs, where they associate with voltage-gated ion channels, enabling light to control action-potential firing. All charged photoswitch compounds require permeation through P2X receptors, whose gene expression is upregulated in the blind retina. Photoswitches and membrane-impermeant fluorescent dyes likewise penetrate through P2X receptors to label a subset of RGCs in the degenerated retina. Electrophysiological recordings and mapping of fluorescently labeled RGC dendritic projections together indicate that photosensitization is highly selective for OFF-RGCs. Hence, P2X receptors are a natural conduit allowing cell-type-selective and degeneration-specific delivery of photoswitches to restore visual function in blinding disease.