This study explores the chemical fingerprinting of 18 different extracts from Moroccan Cannabis sativa L. variety (seed, leaves, and resin) using Attenuated Total Reflectance-Fourier Transform Infrared (ATR-FTIR) spectroscopy. C. sativa parts were extracted using an Ultrasound-Assisted Extraction (UAE) method with different solvents (n-hexane, petroleum ether, dichloromethane, acetone, methanol, ethanol-water (7:3)). The extracts were analyzed by ATR-FTIR spectroscopy to obtain and identify their fingerprints and the main functional groups. Chemometric analysis included Principal Component Analysis (PCA), 2D-FTIR Correlation, and Pearson Correlation Matrix Plot Analysis was carried out to investigate possible correlations between the studied extracts. The 2D-FTIR Correlation revealed that seed extracts are rich in carboxylic acid groups based on analysis of their characteristic bands appearing in the regions of 2500–3300 cm− 1 for OH groups and 1700–1725 cm− 1 for carbonyl groups. The analysis of 1D-FTIR spectra of resin extracts in the region of 1700–1725 cm− 1 confirmed the absence of characteristic carboxylic acid bands, while the 1D-FTIR spectra of seed extracts showed much stronger signals in this region. The statistical analysis by PCA allowed confirmation of the differences in terms of chemical composition of various extracts from seeds, leaves, and resin. The anti-inflammatory activities showed that ethanol-water (7:3) extracts exhibited the best activities with IC50 values ranging from 29.57 to 44.62 µg/mL compared to other extracts. Tukey’s comparison test was performed to detect significant differences between groups (seeds, leaves, and resin extracts) at the p < 0.05 level. These findings open the door to potential applications in both traditional and modern medicine. We recommend performing a comprehensive in vitro study on the active extracts to better understand their pharmacological effects.