Gastriccancer (GC) is a malignant tumor with global incidence and death ranking fifth and fourth, respectively. GC patients nevertheless have a poor prognosis despite the effectiveness of more advanced chemotherapy and surgical treatment options. The second most frequently mutated gene in GC is PI3Kalpha, a confirmed oncogene that results in abnormal PI3K/AKT/mTOR signaling, causing enhanced translation, proliferation, and survival, and is mutated in 7-25% of GC patients. The protein PI3Kalpha was targeted in the present study by utilizing machine learning (ML), molecular docking, and simulation. A total of 9214 molecules from the DrugBank database were chosen for the first screening. A training set for 6770 compounds tested against PI3Kalpha was assessed to create a quantitative structure-activity relationship-based machine learning model using five different classification algorithms: random forest, random tree, J48 pruned tree, decision stump, and REPTree. Furthermore, consideration was given to the random forest classifier for screening based on its performance index (Kappa statistics, ROC, and MCC). Overall, 1539 of the 9214 drug bank compounds were predicted to be active. Thereafter, three pharmacological filters, Lipinski's rule, Ghose filter, and Veber rule, were applied to test the drug-like properties of the screened compounds. Twenty-six of 1593 compounds showed excellent drug-like properties and were further considered for molecular docking. Thereafter, two compounds were screened as hits because they possessed the molecular docked position with the lowest binding energy and an excellent bonding profile. The binding stability of the selected compounds was further assessed through molecular dynamics simulations for up to 100 ns. Furthermore, compound 1-(3-(2,4-dimethylthiazol-5-YL)-4-oxo-2,4-dihydroindeno[1,2-C]pyrazol-5-YL)-3-(4-methylpiperazin-1-YL) urea was selected as a potential hit in the final screening by analyzing a number of parameters, including the Rg, RMSD, RMSF, H bonding, and SASA profile. Therefore, we conclude that compound 1-(3-(2, 4-dimethylthiazol-5-YL)-4-oxo-2,4-dihydroindeno[1,2-C]pyrazol-5-YL)-3-(4-methylpiperazin-1-YL) urea has efficient inhibitory potential against PI3Kalpha protein and could be utilized for the development of effective drugs against GC.