This invention relates to a pharmaceutical composition for treating cancer, comprising an effective amount of a compound represented by formula (I):wherein R is —CCOCCOCC— or —CCOCCOCCOCC— and a pharmaceutical acceptable carrier. This invention also relates to a method for treating cancer, comprising administering a therapeutically effective amount of said compound to a subject and a method for stabilizing G4 structure of telomere by using this compound.