A method for extracting delta-9-tetrahydrocannabinol (THC) and cannabidiol (CBD) from Cannabis inflorescences, wherein the method comprises the following steps:(i) triturating the inflorescences of Cannabis obtaining a triturated mass;(ii) preheating the triturated mass in an oven at a temperature between 120 and 145°C, wherein the triturated mass subjected to preheating has a thickness of less than or equal to 5 mm, obtaining a preheated triturated mass;(iii) mixing the preheated triturated mass with a lipophilic solvent, obtaining a solid-liquid mixture;(iv) heating the solid-liquid mixture in a water bath with boiling water;(v) separating a lipophilic liquid phase and a solid phase from the heated solid-liquid mixture,where the lipophilic liquid phase contains THC and CBD.