Conducting polymer nanocomposites are the forthcoming materials for developing technologies, as they possess a combination of unique properties of their components. This study used the sol-gel technique to prepare and fabricate nanocomposite of polyaniline (PANI), with nanomaterial (TiO2), doped by tin (Sn+2) (PANI/Sn+2/TiO2). Novel nanocomposites were prepared in different ratios (5%, 10%, 15%, 20%, and 25%) of weight for the nanomaterial (Sn+2/TiO2) to the polymer (PANI). The prepared nanocomposites were characterized with several techniques including Fourier transform infrared (FT-IR) Spectrometer, Ultraviolet-visible (UV-vis.) spectroscopy, X-ray diffraction (XRD), Scanning Electron Microscopy (SEM), and Atomic Force Microscopy (AFM). This research has presented the role of nanomaterial and described the easy process of their homogenous distribution in the (PANI/Sn+2/TiO2) nanocomposites. The electrical conductivity of the prepared materials was examined and confirmed by electrical conductivity. The combination of Sn+2/TiO2 in the PANI matrix will be very valuable for the improvement of the physical and chemical properties of the polymer's conductivity.