The present invention relates to a composition comprising compound of formula CB6 or CB8,the pharmaceutically-acceptable carrier, solvent, the salts thereof or a combination thereof which is used to treat autophagy-associated diseases such as Alzheimers disease, Parkinsons disease, Huntingtons disease, etc. The present invention also relates to a method of treating these diseases by administering a therapeutically-effective amount of the compound to the subject in need of the treatment. The present invention further relates to the use of this compound in preparation of the composition to treat the diseases.