Conductive polyaniline/titanium dioxide (PANI/TiO2) nanocomposites with different weight ratios were synthesized using in situ chemical oxidative polymerization. PANI/TiO2 was characterized by X-ray diffraction, Fourier transform infrared spectroscopy, transmission electron microscopy, thermogravimetric analysis and electrical conductivity. Room temperature conductivities of PANI, PANI/TiO2 (I), PANI/TiO2 (II), and PANI/TiO2 (III) are 9.77 x 10(-4), 1.89 x 10(-5), 2.01 x 10(-5) and 2.87 x 10(-5) S/cm respectively, show decrease of conductivity with increase of TiO2 content in the nanocomposite due to the hindrance of carrier transport between different conjugated chains of PANI in composite. The IR measurement indicates that there is strong interaction between the PANI and TiO2 nanoparticles showing beneficial effect on the thermal stability of PANI/TiO2 nanocomposite. Corrosion inhibition study shows that 316LN stainless steel coated with PANI/TiO2 nanocomposite with weight ratio 0.05 shows better corrosion inhibition effect than pure PANI and nano-TiO2 coating.