Waveguide gratings covered with nonlinear polyaniline/PMMA thin film were fabricated and power-dependent Bragg diffraction of the waveguide grating was observed with ps response time. The third-order nonlinear coefficient of the polymer film is measured by z-scan technique. Finally, the experimental result of the power-dependent Bragg diffraction of the waveguide grating was discussed. (C) 1998 Elsevier Science B.V.