The mastic tree, scientifically known asPistacia lentiscus, which belongs to the Anacardiaceae family, was used in this study. The aim of this research was to analyze the chemical composition of this plant and assess its antioxidant and antibacterial properties using both laboratory experiments and computer simulations through molecular docking, a method that predicts the binding strength of a small molecule to a protein. The soxhlet method (SE) was employed to extract substances from the leaves ofP. lentiscusfound in the eastern region of Morocco. Hexane and methanol were the solvents used for the extraction process. The n-hexane extract was subjected to gas chromatography-mass spectrometry (GC/MS) to identify its fatty acid content. The methanolic extract underwent high-performance liquid chromatography with a diode-array detector (HPLC-DAD) to determine the presence of phenolic compounds. Antioxidant activity was assessed using the DPPH spectrophotometric test. The findings revealed that the main components in the n-hexane extract were linoleic acid (40.97 ± 0.33%), oleic acid (23.69 ± 0.12%), and palmitic acid (22.83 ± 0.10%). Catechin (37.05 ± 0.15%) was identified as the predominant compound in the methanolic extract through HPLC analysis. The methanolic extract exhibited significant DPPH radical scavenging, with an IC50 value of 0.26 ± 0.14 mg/mL. The antibacterial activity was tested againstStaphylococcus aureus,Listeria innocua, andEscherichia coli, while the antifungal activity was evaluated againstGeotrichum candidumandRhodotorula glutinis. TheP. lentiscusextract demonstrated notable antimicrobial effects. Additionally, apart from molecular docking, other important factors, such as drug similarity, drug metabolism and distribution within the body, potential adverse effects, and impact on bodily systems, were considered for the substances derived fromP. lentiscus. Scientific algorithms, such as Prediction of Activity Spectra for Substances (PASS), Absorption, Distribution, Metabolism, Excretion (ADME), and Pro-Tox II, were utilized for this assessment. The results obtained from this research support the traditional medicinal usage ofP. lentiscusand suggest its potential for drug development.