Our study emphasizes TOP2A’s prognostic significance in KIRC and LIHC and recognizes Andrographis paniculata compound as potential therapeutics, offering prospective for enhanced treatment and patient outcomes in these cancers. Here, TOP2A is linked to cancer.