We designed and synthesized a Py-Im polyamide seco-CBI conjugate protected by a photocleavable group and demonstrated that it was selectively activated by UV irradiation both in vitro and in vivo. Sequence-specific alkylating Py-Im polyamides containing photolabile linkers may be useful for developing novel chemical- or enzyme-activated anticancer agents and may facilitate spatiotemporal control of gene expression.