The present invention provides two compounds, namely Compound A and B, as the potential anticancer drug, and a composition comprising said Compound A and/or B for treating cancer or tumor related diseases. The present invention also relates to methods of preparing the compounds from a natural source and a composition comprising the compounds, and using the same for treating cancer or tumor related diseases.