A photo-click reaction was used as an efficient method to construct two-photon fluorescent probes bearing two functional peptides for targeting and for protease cleavage respectively. The activatable two-photon probe constructed by this method was applied to two-photon imaging of caspase-3 both in cellular apoptosis and in tumor tissue.