Then, by analyzing the molecular interaction between the selected drugs and IAPP and Aβ42 peptide, the key proteins involved in T2D and AD, we found that hypericin had strong affinity with both peptides, indicating it could be a potential drug for treating the comorbidity of the two diseases. The gene discussed is IAPP; the disease is type 2 diabetes mellitus.