This work carried out the synthesis of titanium dioxide (TiO2) doped with nitrogen through the Pechini method using two different kinds of doping sources: ammonium nitrate and urea. Nine samples were synthesized using different proportions of each doping source; including a sample without doping and doping of 0.1; 0.4; 0.6 and 0.8 in mole fraction of nitrogen for each source, with the formula TiO2-xNx. The characterization of the powder were used analysis of X-ray diffraction (XRD), infrared spectroscopy (IR), UV spectroscopy, analysis of surface area (BET), diffuse reflectance spectroscopy (DRS) and scanning electron microscopy (SEM) with EDS. Likewise, several degradative assays of malachite green solutions were made with concentrations between 6 and 8 mg/L in a reactor of visible light with a time of 200 minutes per test. Samples which had not a pure diffraction pattern were selected for a purification process with deionized water to remove its impurities. This process was subsequently verified through another analysis of X-ray diffraction. The samples synthesized from urea reduced its bandgap in 0.03 eV, suggesting the absence of an effective doping, because the degradation percentages were lower than the exhibited in the dye degradation without any powder. The samples synthesized from nitrate showed better characteristics and yields according to the results of the analyzes performed, showing a percentage degradation of 87.37%, a surface area of 17,309 m2/g, a pure rutile crystalline phase after purification process and a granular and uneven surface.