We report a general method for light-assisted control of interactions of PDZ domain binding motifs with their cognate domains by the incorporation of a photolabile caging group onto the essential C-terminal carboxylate binding determinant of the motif. The strategy was implemented and validated for both simple monovalent and biomimetic divalent ligands, which have recently been established as powerful tools for acute perturbation of native PDZ domain-dependent interactions in live cells.