The document describes the formation and characterization of a polyaniline-titanium dioxide nanocomposite. Aniline and titanium dioxide nanoparticles were polymerized into cotton textiles using an inverted emulsion polymerization method. Fourier-transform infrared spectroscopy and X-ray diffraction analysis confirmed the successful synthesis of the polyaniline-titanium dioxide nanocomposite within the cotton textile matrix.