Photopharmacology addresses the challenge of drug selectivity and side effects through creation of photoresponsive molecules activated with light with high spatiotemporal precision. This is achieved through incorporation of molecular photoswitches and photocages into the pharmacophore. However, the structural basis for the light-induced modulation of inhibitory potency in general is still missing, which poses a major design challenge for this emerging field of research. Here we solved crystal structures of the glutamate transporter homologue GltTk in complex with photoresponsive transport inhibitors—azobenzene derivative of TBOA (both in trans and cis configuration) and with the photocaged compound ONB-hydroxyaspartate. The essential role of glutamate transporters in the functioning of the central nervous system renders them potential therapeutic targets in the treatment of neurodegenerative diseases. The obtained structures provide a clear structural insight into the origins of photocontrol in photopharmacology and lay the foundation for application of photocontrolled ligands to study the transporter dynamics by using time-resolved X-ray crystallography.