In this work, nanocomposite material consisting of titanium dioxide (TiO2) nanoparticles and rhodamine 6G (R6G) laser dye was doped with different ratios of polystyrene (PS) and polymethylmethacrylate (PMMA) polymer blends (i.e. 40% PS/60% PMMA and 50% PS/50% PMMA) using the casting method. The optical properties of the prepared samples were measured using UV-visible spectroscopy. These measurements include the calculations of the absorption (A%), absorption coefficient (α), energy gap (Eg), refractive index (n), extinction coefficient (K) and real and imaginary parts. These nanocomposite materials were investigated using a scanning electron microscope and photoluminescence (PL) spectra emission. The SEM results show that the optimum results were at 50% PS/50% PMMA/TiO2/R6G with all the dye being decorated in the process blend, while the TiO2 nanoparticle demonstrated that the pores were incomplete in some places and complete in others. The optical results show that there are red shifts in all absorption peaks caused by the increased PS ratio. The Eg decreased from 3.2 eV to 2.8 eV as the concentration of PS in the polymer matrix increased. The PL spectrum for the nanocomposites, with a different ratio of PS, shows that sharp peaks of PL emission occur at a wavelength of 570 nm and shift towards longer wavelengths with an increased PS%.