Synthetic organic dyes are coloring agents used in various industries. Despite the fact that they offer exciting colors and long-lasting effects, certain organic dyes can have harmful impacts on human health and aquatic ecosystems. This study investigates the photocatalytic degradation of malachite green dye using Ni–TiO2 nanoparticles (NPs) and Ni–TiO2/PANI nanocomposites (NCs) in various reaction conditions. The surface and compositional change of synthesized photocatalysts were characterized by XRD, FTIR, AAS, and UV–vis spectrophotometer. Accordingly, the XRD results signify the crystal structure of photocatalysts found to be tetragonal anatase phase while the FT-IR spectra indicate the titanium has predominantly form a coordination compound upon reaction with nitrogen atom through weakening the bond strength between C═N, C═C, and C─N in the PANI. The UV–vis measurement shows that the energy bandgaps were decreased from 3.20 to 2.77 eV and 2.59 eV for Ni–TiO2 NPs and Ni–TiO2/PANI NCs, respectively. From AAS data, the authors confirmed that Ni metal has significantly existed in the aforementioned photocatalysts after the calcination process. The photocatalytic degradation of Ni–TiO2 NPs and Ni–TiO2/PANI NCs on the model dye has studied and their efficiency was 94.22% and 99.09%, respectively. The photocatalytic degradation follows pseudo-first order with 2.23 × 10−2 min−1 reaction rate at optimum conditions of pH 8.5, initial dye concentration of 0.2 g/L, catalyst load of 0.2 g/L, and irradiation time of 90 min. With this, the outstanding result recorded using Ni–TiO2/PANI NCs is ascribed to the smaller particle size as compared to Ni–TiO2 NPs, and it is found to be the promising photocatalyst for the removal of wastewater containing organic dyes.