In the study, we investigated the practicality of the UV polymerization of aniline for anti-aflatoxin B1 antibody immobilization, and utilization of the resulting biosensor in the impedimetric determination of aflatoxin B1. The anti-aflatoxin B 1 antibody was physically immobilized on gold electrodes by UV polymerization of aniline at a fixed wavelength. The biosensor was based on specific interaction anti-aflatoxin B1 - aflatoxin B1 recognition and investigation of this recognition event by electrochemical impedance spectroscopy. A calibration curve was obtained in a linear detection range 1-20 ng/mL aflatoxin B1. Finally, the biosensor was applied to analysis of a real food sample.