Over the past two decades, molecular imprinted polymers have attracted a broad interest from scientists in sensor development. In the preparation of molecular imprinted polymers the desired molecule (template) induces the creation of specific recognition sites in the polymer. In this study, the glassy carbon electrode (GCE) based on molecularly imprinted polypyrrole (PPy) was fabricated for the determination of tobramycin (TOB). The developed electrode was prepared by incorporation of a template molecule (TOB) during the electropolymerization of pyrrole on GCE in aqueous solution using cyclic voltammetry (CV) method. The performance of the imprinted and non-imprinted electrodes was evaluated by square wave voltammetry (SWV). The effect of pH, monomer and template concentrations, electropolymerization cycles on the performance of the imprinted and non-imprinted electrodes was investigated and optimized. The non-modified and TOB-imprinted surfaces were characterized by using atomic force microscopy (AFM), Fourier transform infrared spectroscopy (FTIR), electrochemical impedance spectroscopy (EIS) and CV. The linearity range of TOB was 5.0 x 10(-10)-1.0 x 10(-8) M with the detection limit of 1.4 x 10(-10) M. The developed nanosensor was applied successfully for the determination of TOB in egg and milk. (C) 2013 Elsevier Ltd. All rights reserved.