A novel nano-structured polyaniline-ionic liquid (i.e. 1-butyl-3-methylimidazolium hexafluorophosphate, BMIPF(6)) composite (BPAN) film coated steel wire was prepared by electrochemical deposition. Scanning electron microscopy images showed that the obtained porous BPAN coating consisted of nanofibers, whose diameter ranged from 50 to 80 nm. Furthermore, the novel nano-structured composite coating was very stable at relatively high temperatures (up to 350 °C) and it could be used for more 250 times without obvious decrease of the extraction efficiency. The novel BPAN coating was used for the headspace solid-phase microextraction (HS-SPME) of organochlorine pesticides (i.e. hexachlorocyolohexane, dichlorodiphenyldichloroethylene, dichlorodiphenyldichloroethane, dichlorodiphenyltrichloroethane), coupled with gas chromatography-electron capture detection (GC-ECD). The BPAN coating showed better analytical capability on the whole compared with common polyaniline (PANI) and polydimethylsiloxane (PDMS) coatings. The key parameters influencing extraction efficiency were investigated and optimized, including desorption time, stirring speed, extraction temperature, extraction time and ionic strength. The relative standard deviations (RSDs) for single fiber repeatability ranged from 2.3 to 8.7% (n=6) and the RSDs for fiber-to-fiber reproducibility (n=6) were 4.2-12.1%, respectively. The linear ranges exceeded three magnitudes with correlation coefficients above 0.99. The detection limits were 0.12-0.31 ng L(-1). The proposed method was successfully applied for the determination of organochlorine pesticides in lake water, waste water and sewage treatment plant effluent with good recoveries from 88.9 to 112.9%.