Pistacia lentiscus L. is an aromatic plant containing a significant percentage of essential oil (EO) used in fragrance, pharmaceuticals, cosmetics, and the food industry. The purpose of this work is focused on the optimization of Pistacia lentiscus L. oleo gum resin EO yield extracted by superheated steam extraction (SHSE) by response surface methodology, including extraction parameters of particle size (0. 5 − 1 mm), temperature (140–180 °C) and time (90–150 min). The optimum conditions for Pistacia lentiscus L. EO extracted by SHSE were found to be (particle size: 0.75 mm, time: 120 min and temperature: 160 ℃) which produced the highest EO yield of 5.7%. A regression model was developed, demonstrating a robust quadratic correlation with an R2 value of 0.9991, making it suitable for predictions. Furthermore, the yield of Pistacia lentiscus L. EO extracted by SHSE was compared with the conventional steam and hydro distillation techniques. The study revealed that SHSE yielded higher quantities of EO than other extraction methods. GC-MS analyzed the chemical composition of Pistacia lentiscus L. EO. The predominant compound of Pistacia lentiscus L. EO was determined to be α-pinene, while the other identified compounds include trans-verbenol, verbenol, cis-verbenone, camphene, β-myrcene, d-limonene, cymene, α-myrtenol, α-campholenal, α-copaene, and α-thujene, whose content differed according to different extraction techniques. Overall, superheated steam extraction is an efficient technique for extracting Pistacia lentiscus L. essential oil that enhances EO yield, requiring less time for extraction.