A green biocomposite of sunflower stalks and graphitic carbon nitride nanosheets has been applied as a solid-phase extraction adsorbent for sample preparation of five polycyclic aromatic hydrocarbons in different solutions using high-performance liquid chromatography with ultraviolet detection. Before the modification, sunflower stalks exhibited relatively low adsorption to the polycyclic aromatic hydrocarbons extraction. The modified sunflower stalks showed increased adsorption to the analytes extraction due to the increase in surface and existence of a π-π interaction between the analytes and graphitic carbon nitride nanosheets on the surface. Under the optimal conditions, the limits of detection and quantification for five polycyclic aromatic hydrocarbons compounds could reach 0.4-32 and 1.2-95 ng/L, respectively. The method accuracy was evaluated using recovery measurements in spiked real samples and good recoveries from 71 to 115% with relative standard deviations of <10% have been achieved. The developed method was successfully applied for polycyclic aromatic hydrocarbons determination in various samples-well water, tap water, soil, vegetable, and barbequed meat (kebab)-with analytes contents ranging from 0.065 to 13.3 μg/L. The prepared green composite as a new sorbent has some advantages including ease of preparation, low cost, and good reusability.