Herein, we designed and developed a simple, rapid and sensitive method for detection of coralyne and heparin using a singly labeled fluorescent probe, based on photoinduced electron transfer (PIET). A specific oligonucleotide strand was labeled with fluorophore (6‐FAM) at its 5’ end and four guanines at its 3’ end. In the presence of coralyne, homo‐adenine DNA duplex is formed via A2‐coralyne‐A2 coordination, thus leading to the fluorescence quenching due to PIET between guanine and fluorophore. Upon the addition of heparin, the formation of heparin‐coralyne complex can prevent coralyne from forming A2‐coralyne‐A2 coordination, separating fluorophore from guanines; as a result, the fluorescence intensity can be recovered. The detection limits of the method with respect to coralyne and heparin were 3.1 nM and 0.04 nM (S/N=3), respectively. Moreover, the proposed method was successfully applied to detect heparin in human serum sample, further demonstrating that it can have promising practical applications.