An analytical procedure was developed using headspace solid-phase microextraction (HS-SPME) for the determination of organochlorine pesticides (OCPs) and their metabolites in sandy soil samples. The developed procedures involving fiber selection, temperature effect, absorption time, soil matrix and the addition of solvents of different polarity were optimized. Also, the results were compared to those achieved using Soxhlet extraction standard method. The 100-μm polydimethylsiloxane (PDMS) and 65-μm PDMS-divinylbenzene showed good extraction efficiency for 18 organochlorine pesticides. An increase in the extraction efficiency of organochlorine pesticides and the metabolites was observed when the temperature increased, and an optimum temperature of 70 o C for extracting OCPs was obtained. The application of other hydrophilic solvents had different effects on the extraction of organochlorine pesticides and the metabolites. Higher responses of OCPs were obtained when 5 ml of water was added to the soil. Good linearity of OCPs between 0.2 and 4 ng/g soil was observed. The relative standard deviation was found to be lower than 25%. Also the limits of detection were between 0.06 and 0.65 ng/g, which were lower than those obtained using Soxhlet extraction. Moreover, the optimized HS-SPME procedure was applied to the analysis of OCPs in certified reference material (CRM) 804-050 soil and compared with Soxhlet extraction procedure. Results obtained in this study were in good agreement with those obtained using Soxhlet extraction. The mean values obtained using HS-SPME technique were in the range of 16.5 to 1459.6 mg/kg, which corresponds to the recoveries of 68% to 127% of the certified values of CRM soil.