“The incidence of type 2 diabetes (T2D) is rising, and finding new treatments is important. C. sativa is a plant suggested as a potential treatment for T2D, but how it works needs to be clarified. This study explored the pharmacological mechanism of C. sativa in treating T2D. We identified the active compounds in C. sativa and their targets. From there, we examined the genes associated with T2D and found overlapping genes. We conducted an enrichment analysis and created a protein-protein and target-compound interactions network. We confirmed the binding activities of the hub proteins and compounds with molecular docking. We identified thirteen active compounds from C. sativa, which have 150 therapeutic targets in T2D. The enrichment analysis showed that these proteins are involved in the hormone, lipid, and stress responses. They bind transcription factors and metals and participate in the insulin, PI3K/Akt, HIF-1, and FoxO signaling pathways. We found four hub proteins (EGFR, ESR1, HSP90AA1, and SRC) that bind to the thirteen bioactive compounds. This was verified using molecular docking. Our findings suggest that C. sativa‘s antidiabetic action is carried out through the insulin signaling pathway, with the participation of HIF-1 and FoxO.”