Trans-anethole achieved the best docking scores (−7.9, −9.3 and −9.9 Kcal/mole) for in-silico study on EGFR, CDK2 and CDK4 enzymes engaged in cancer, respectively. Here, CDK2 is linked to cancer.