Introduction

In the wood and textile industries, the cationic dyes such as Methylene Blue (MB) are largely used with various applications (Nas et al., 2019; Abbasi et al. 2012). Generally MB, present in aquatic medium causes irreparable harms to water bodies. The degradation of MB from wastewater is a major issue because MB degraded unevenly leads to the formation of hazardous chemical species, finally affecting the environment. Reactive oxygen and other strong oxidative species are necessary for the efficient breakdown of organic contaminants. In order to solve environmental issues, heterogeneous photocatalysts must be used in conjunction with sustainable energy sources like solar energy. Pollutants may be effectively broken down into mineralized species like H2O and CO2 by an effective advanced oxidation process called solar light-assisted photocatalysis (Huang et al., 2018; Liying et al. 2013; Malathy et al. 2023). Although photocatalysts with attractive properties, such as TiO2, ZnO, and CdS, have long been preferred (Akpan & Hameed, 2009; Rajendran et al., 2022), even though the familiar catalysts have bottleneck drawbacks, including low utilization visible light poitions and high electron–hole charge recombination rates. One well-known rare earth metal oxide that is useful as a photocatalyst for breaking down organic dyes is cerium (CeO2). Its capacity to store oxygen and convert Ce4+ to Ce3+ accounts for its high catalytic efficiency (Dey et al., 2022; Manimegalai et al., 2023; Ranjith et al., 2023; Xu et al. 2012). Cerium oxide seems to be titanium dioxide in the basis of basic phoptocatalytic qualities like environmentally friendly, inexpensive, and chemically inert. CeO2 also responds more readily to visible light in the solar spectrum than TiO2 does (Gao et al., 2013; Rajendran et al., 2024; Thangavelu et al., 2023). But problems like the recombination of photogenerated charges (e and h+) and the insufficient catalytic surface of CeO2 severely limit its photocatalytic activity.

g-C3N4 is a heterocyclic organic semiconductor that has remarkable chemical-based and thermal conductivity. Considering that it responds to visible light, its low cost and broad distribution make it a desirable alternative. It can be paired with broad band gap photocatalysts because of this property (Dey et al., 2022). Scholars have emphasized the noteworthy influence of the non-toxic carbon nitride semiconductor g-C3N4 in diverse domains, including organic pollutant degradation, water splitting, and biosensors (Gao et al., 2013; Rajendran et al., 2024; Thangavelu et al., 2023; Muthamilarasu et al. 2022; Wetchakun et al. 2012), therefore establishing it as a prominent participant in the field of environmental pollutant degradation research. Notwithstanding its encouraging attributes, g-C3N4 encounters obstacles that impact its catalytic efficacy. Its further growth is hampered by problems such high photogenerated charge carrier recombination, subpar surface qualities, and restricted solar light absorption, especially below the 460 nm absorbance maximum (Gao et al., 2013; Thangavelu et al., 2023). To effectively utilize g-C3N4, it is imperative to address these deficiencies. To overcome these obstacles, scientists have combined g-C3N4 with oxide semiconductors such as CuO, ZnO, and others to create binary or multinary nanocomposites (Chandrasekar et al., 2023; Malathi et al., 2024; Divya et al. 2021; Li et al. 2009). After formation of g-C3N4 coupled oxide semiconductors the photocatalytic activity shifted next milestone due to its enhanced optical and photophysical characteristics. They are therefore more effective in breaking down stable organic contaminants.

In order to overcome the restricted photocatalytic capabilities of materials with CeO2 and g-C3N4, scientists have investigated appropriate heterojunction building techniques. These methods seek to enhance important catalytic characteristics, such as the efficient separation of photogenerated electrons and holes and the effective use of visible light. The selection of a synthetic procedure is critical in order to achieve desired properties like high surface area and excellent crystallinity. Hydrothermal and co-pyrolysis techniques are becoming popular ways to fabricate carbon allotrope copupled metaloxodes nanocomposites (Liu et al., 2015; Malathi et al., 2023). Huang et al.'s work (Runda et al., 2021) used the creation of a unique CeO2/g-C3N4 composite to show how successful this method is. Their results demonstrated that the combination of CeO2 and Ag-GCN produced remarkable photocatalytic activity for the degradation of the dyes AY-36 and DR-12. The present study highlights the significance of heterojunction assembly techniques in augmenting the photocatalytic efficacy of substances based on g-C3N4 and CeO2. The study made a number of noteworthy observations, such as the remarkable adsorption capacities of both catalysts and dyes, the excellent absorption of visible light, and the efficient conversion of reactive oxygen species. Furthermore, in CeO2/g-C3N4 composites, Nachimuthu et al. (2023) noted particular photocatalytic features such a wide surface area and regulated shape.

In this work, the creation of g-C3N4/N-doped CeO2 nanocomposites offers a viable solution to the environmental problems brought on by the breakdown of organic pollutants. These nanocomposites provide increased photocatalytic activity by using solar light irradiation, possibly circumventing the drawbacks of conventional photocatalysts. This work intends to clarify the structural and photocatalytic characteristics of these innovative nanocomposites using a combination of XRD, SEM, and UV–vis DRS studies, opening the door for their potential use in environmental remediation.

Materials and methods

Materials

For the synthesis of the parent photocatalyst, aqueous ammonia (28–30%) was acquired from Merck India, while urea and (NH4)2Ce(NO3)6 were procured from Loba Chemie India. The water used to make all of the solutions was double-distilled. NaOH and HCl were used to alter the pH, while benzoquinone (BQ), triethanolamine (TEOA), and isopropyl alcohol (IPA) were used as scavengers for measuring the active species.

Methylene blue dye (MB) was used for photocatalytic degradation studies.

Chemical formula: C16H18ClN3S.

Molecular weight: 319. 85 g/mol.

Water solubility: 43. 6 g/L in water at 25 °C.

λmax: 668 nm.

figure a

Methods

Formation of g-C3N4 sheet

Pyrolysis was used in the deammoniation process to create the g-C3N4 sheet. The conventional protocol involved dissolving 15 g of urea in 50 mL of double-distilled water and agitating the mixture for 30 min to achieve homogeneity. After that, the urea solution was dried in a hot air furnace at 100 °C to eliminate any remaining water. The dried urea was then heated to 200 °C for 2 h, and then it was subjected to a solid-phase reaction in a traditional muffle furnace for 2 h at a ramp rate of 10 °C per minute at 450 °C. The result was a pale yellow solid known as the bare g-C3N4 sheet, which was produced after cooling to room temperature.

Synthesis of N-doped CeO2 nanoparticles

The following protocol was used in order to synthesize N-doped CeO2 nanoparticles (Xiaolong et al., 2017): First, a suitable volume of double-distilled water was used to dissolve 5 g of (NH4)2Ce(NO3)6 (CAN), which was then thoroughly agitated until total uniformity was attained. The CAN solution was then mixed with 10 mL of ammonia solution dropwise to create a gel. Following filtering and a wash with an aqueous-alcoholic solution, the gel was treated with 0.009 M% urea. After that, surplus water and contaminants were removed from the nitrogen-impregnated cerium hydroxide gel by heating it for 12 h at 120 °C. Ultimately, the dehydrated powder underwent calcination in a muffle furnace at 500 °C to produce finely distributed N-doped CeO2 nanoparticles.

Fabrication of N-doped CeO2/g-C3N4nanocomposites

N-doped CeO2/g-C3N4 NCs were first created by dispersing 100 mg of g-C3N4 in 50 mL of double-distilled water and ultrasonically dissolving it for 2 h. The dispersing solution was then combined with 900 mg of N-doped CeO2, and the combination was agitated for a duration of 12 h. Following separation, the composite substances were dried at 80 °C and then treated for 3 h at 300 °C. Various aggregates were additionally made, ranging from 0.90:0.10 to 0.70:0.30 and 0.60:0.10, respectively, with varying mass ratios and concentrations of N-doped CeO2 and g-C3N4.

Characterization

Using Cu K radiation (λ = 1.05466), powder X-ray diffraction (XRD) examination was performed with a Bruker D8 Advanced diffractometer. Utilizing a Bruker VECTOR 22 spectrometer, Fourier-transform infrared (FT-IR) spectra were obtained. Using an S-5000 device from Hitachi Ltd., surface characteristics and the crystalline framework were examined using scanning electron microscopy (SEM). Approaches for transmission electron microscopy (TEM) were used with a JEM 2100F device from JEOL Inc. A UV–Vis–NIR spectrophotometer (Varian/carry 5000) was used to quantify optical absorbing capacity, and a Jobin Yvon FLUOROLOG-FL3-11 spectrometer was used to acquire photoluminescence (PL) spectra.

Photocatalytic experiments

The model contaminant used to assess the composites photocatalytic capabilities was methylene blue (MB) dye. In order to conduct the investigation, a 100 mL solution holding 30 ppm of MB dye had to be prepared. Next, 300 mg of catalyst had to be added. Next, a magnetic stirrer was used to agitate the mixture. The solution that contained the dye was incubated in the dark for 30 min before being exposed to sunlight. The dye solution was then removed, and a 4 mL sample was separated. Using a Perkin Elmer Lambda 25 UV–visible spectrophotometer, wavelengths of absorption were captured. The aforementioned equation was used to calculate the percentage degradation (Yang et al., 2012):

$${\text{\% D}} = \frac{{{\text{C}}_{{\text{o}}} - {\text{C}}_{{\text{t}}} }}{{{\text{C}}_{{\text{o}}} }} \times 100$$
(1)

where Ct denotes the color absorbing with a catalyst following a certain amount of time, and Co denotes the color uptake without catalyst.

Results and discussion

X-ray diffraction analysis

X-ray diffraction (XRD) analysis was used to look at the generated photocatalysts crystallization characteristics. The XRD patterns of g-C3N4, N-doped CeO2, and g-C3N4/N-doped CeO2 nanocomposites (g-C3N4/N-CeO2 NCs) are shown in Fig. 1. The diffraction peaks shown at 28.3°, 32.8°, 47.2°, 56.1°, and 69.3° in Fig. 1 are ascribed to the N-doped CeO2 nanoparticles cubic fluorite crystalline phase, which resembles the pattern of pure CeO2 very closely (JCPDF No. 34–0394).

Fig. 1
figure 1

XRD patterns of the as-prepared N-doped CeO2 nanoparticles, g-C3N4 and g-C3N4/N-CeO2 NCs

The naked g-C3N4 has a peculiar diffraction pattern; a clear peak is seen at 27.4°, which corresponds to crystalline planes that look like (002). This diffraction pattern is exactly matches with normal JCPDS card No. 87–1526. The necessity diffraction patterns of g-C3N4 and N-doped CeO2 nanoparticle are clearly seen in the g-C3N4/N-CeO2 nanocomposites pattern. This is demonstrates that g-C3N4 and N-doped CeO2 have been successfully fabricated. Furthermore, the creation of the composites is shown by a minor shift in the higher 2θ value, indicating a significant interaction between g-C3N4 and N-doped CeO2. In addition increase the loading of g-C3N4 content on N-doped CeO2 surface, the crystallanity of -C3N4/N-CeO2 NCs were decreased which is due to over incorporation of C3N4 content on N-doped CeO2. Furthermore, no aberrant peaks other than those corresponding to N-doped CeO2 and g-C3N4 are detected.

Scanning electronic microscopic and EDX analysis

The surface microstructure and their nanostructure of g-C3N4, N-doped CeO2, and g-C3N4/N-doped CeO2 nanocomposites with 10 wt% and 30 wt% loading were investigated by SEM examination. It is possible to detect g-C3N4 as a fluffy, sheet-like structure in Fig. 2a. The erratically aggregating amorphous nanoparticles of N-doped CeO2 produced by the sol–gel technique are shown in Fig. 2b.

Fig. 2
figure 2

SEM images of the as-prepared a g-C3N4 b N-doped CeO2, c 10 wt% g-C3N4/N-CeO2 NCs d 30 g-C3N4/N-CeO2 NCs e EDX of g-C3N4/N-CeO2 nanocomposites

The SEM representation of the 10 weight percent g-C3N4/N-CeO2 nanocomposites is shown in Fig. 2c. It demonstrates two tightly packed particles with comparable shape, indicating that the nanocomposites comprising g-C3N4 and N-doped CeO2 were successfully formed. In the interim, Fig. 2d depicts the surface microstructure of 30 weight percent g-C3N4/N-CeO2 nanocomposites, which clearly exhibits a nanosponge-like structure. This particular structure may have improved textile dye absorption properties.

The elemental composition of g-C3N4/N-doped CeO2 nanocomposites is determined by EDX, a micro analytical technique used in association with SEM. The EDX detects X-rays emitted from sample when electrons are bombarded on material surface. Data about chemical composition is provided by measuring the intensity and energy of the signal. The EDX spectrum shows frequency of X-rays in counts for each energy level. The intensity of the peak gives information about the amount of the element in sample [41]. Figure 2e represents EDX spectra of g-C3N4/N-doped CeO2 nanocomposites. The weight percentage of Ce, O, C and N elements present in the appropriate amounts like 51.82, 24.08, 10.35 and 13.75 wt% respectively. These results indicate high amount of CeO2 present in the g-C3N4/N-doped CeO2 nanocomposites than the C3N4. Overall EDX result, indicates there is no unwanted impurities present in the prepared samples.

Transmission electron microscopic analysis

The transmission electron microscopy (TEM) images of 30 weight percent g-C3N4/N-CeO2 nanocomposites are shown in Fig. 3, which also shows the interaction between g-C3N4 and N-doped CeO2. At 200 nm, a cloudy-based morphology with granularity of varying sizes is shown in Fig. 3b. Looking more closely in Fig. 3c, the surface of the g-C3N4/N-CeO2 nanocomposites shows the presence of 20 nm-long, granular-shaped aggregates. The nanosized crystals in Fig. 3d demonstrate the abundance of N-doped CeO2 next to the g-C3N4 sheet. In addition, Fig. 3f SAED pattern for the g-C3N4/N-CeO2 nanocomposites shows a ring-like pattern, which suggests that this material has less crystalline structure than the other materials. The polycrystalline character of the nanostructures is shown by the SAED picture, which is shown as a ring in Fig. 3f. The reflecting planes that were seen and those found in the XRD data are nearly in line.

Fig. 3
figure 3

TEM image of 30 wt% g-C3N4/N-CeO2 NCs

UV–visible DRS analysis

The synergistically impact of g-C3N4 on N-doped CeO2 nanoparticles was investigated using UV–visible diffuse reflectance spectroscopy (DRS) investigation. This is important for comprehension of their photocatalytic characteristics, particularly in degrading organic contaminants under visible light conditions. UV–visible DRS analysis was used to measure the light absorbance of g-C3N4, N-doped CeO2, and g-C3N4/N-CeO2 nanocomposites, as shown in Fig. 4. In the picture, photons are absorbed up to 550 nm by the g-C3N4 sheet, whereas N-doped CeO2 nanoparticles show an absorbance peak at 485 nm. Furthermore, g-C3N4/N-CeO2 nanocomposites exhibit increased absorbance between 485 and 517 nm. It may be inferred from this that all g-C3N4/N-CeO2 nanocomposites absorb visible light more efficiently than N-doped CeO2 nanoparticles individually. The stronger relationship between g-C3N4 and N-CeO2 is suggested by the greater absorption of visible light in g-C3N4/N-CeO2 nanocomposites. A spectrum redshift results from reducing the interface caused by an increase in g-C3N4 concentration on N-CeO2, which enhances electronic interaction between the materials. Zhiquan et al. (2020) observed that associations among materials with narrow-band gap and wide-band gap features can improve optical qualities, which is consistent with this phenomena (Fig. 5).

Fig. 4
figure 4

UV-DRS spectra of g-C3N4, N-doped CeO2nanoparticles, and different weight ratio of g-C3N4/N-CeO2 NCs

Fig. 5
figure 5

Band gap energy of g-C3N4, N-doped CeO2 nanoparticles, and different weight ratio of g-C3N4/N-CeO2 NCs

The produced photocatalysts energy spectrum was calculated using the formula αhυ = A(hυ/Eg)n/2 (Ratchnashree et al., 2023), in which α denotes the absorption coefficient, υ denotes the light frequency, Eg denotes the band gap, and h is the Planck constant. The range of band gap energies of g-C3N4, N-doped CeO2 nanoparticles, and different weight percentages of g-C3N4/N-CeO2 nanocomposites were calculated using this equation, and the results showed that they were around 2.85 eV, 2.21 eV, 2.74 eV, 2.60 eV, 2.50 eV, and 2.35 eV, respectively. With an increase in g-C3N4 content, it was found that the band gap potential of g-C3N4/N-CeO2 nanocomposites dropped from 2.74 to 2.35 eV. This decrease in band gap energy is explained by the nanocomposites increased g-C3N4 content. Consequently, this combinatorial effect, characterized by a reduction in the band gap energy, efficiently amplifies electron–hole pair separation, resulting in enhanced absorption in the visible light spectrum.

PL analysis

The distinction of photogenerated charge carriers inside the photocatalysts is shown by the photoluminescence spectra (PL), which are crucial for evaluating the process of photocatalytic decomposition (Gomathi et al., 2023). A lower PL intensity frequently reflects a higher level of photocatalytic activity because of less electron–hole recombination. At an excitation wavelength of 375 nm, PL spectra of the produced photocatalysts were acquired. Interestingly, as Fig. 6 illustrates, N-doped CeO2 nanoparticles had a greater PL peak intensity, especially in the 550 nm wavelength region. This implies that electron–hole recombination may not have been successfully suppressed by nitrogen doping within the predicted range. On the other hand, g-C3N4/N-CeO2 nanocomposites showed a much smaller PL emission band.

Fig. 6
figure 6

PL spectra of the N-doped CeO2nanoparticles and different weight ratios of g-C3N4/N doped CeO2 nanocomposites

The high interface and intimate contact between g-C3N4 and N-doped CeO2 is consequently responsible for the greater effectiveness in photocatalytic decomposition, as indicated by the reduced PL emission band (Ran et al., 2019). Remarkably, the 30 weight percent composition of g-C3N4/N-CeO2 nanocomposites shows the lowest rate of recombination of photogenerated charge carriers. The 30 wt% g-C3N4/N-CeO2 nanocomposites had the lowest PL intensity when compared to other primary and nanocomposite materials. This suggests that the 30 wt% g-C3N4/N-CeO2 nanocomposites effectively separate photogenerated charge carriers, hence improving the activity of photocatalytic reactions. The PL emission intensity of the 40 wt% g-C3N4/N-CeO2 nanocomposites, nevertheless improves with an additional rise in g-C3N4 content to 40 wt%, indicating less efficient separation of photogenerated charge carriers than in the 30 wt% g-C3N4/N-CeO2 nanocomposites.

FT-IR analysis

Finding the molecular connections between the atoms is mostly accomplished by FT-IR analysis. We must identify the functional categories in unitary and binary photocatalysts based on the study. Figure 7 displays the g-C3N4/N-CeO2 NCs and the N-doped CeO2 nanoparticles of FT-IR spectra. In general, transition metal oxide (MOx) exhibits an absorption band between 400 and 750 cm−1, which is associated with vibrations in the Ce–O bond. Regarding this, the FTIR spectrum of N-doped CeO2 shows a sharp peak at 703 cm−1, which suggests that the Ce–O stretching vibration is present (Wang et al., 2019).

Fig. 7
figure 7

FT-IR spectra of N-doped CeO2 nanoparticles and g-C3N4/N-CeO2 NCs

The band found at 813 cm−1 in the g-C3N4/N-CeO2 nanocomposites is ascribed to the stretching vibrational frequency of the s-triazine ring pattern in g-C3N4. Furthermore, the heterocyclic C–N bond has a faint intensity band at 1621 cm−1. In addition the aromatic C-N bond vibrations are seen at several transmittance ranges, including 1246, 1423, and 1599 cm−1 (Liu et al., 2008). Stretching vibrations of the O–H and N–H are present in representative region like 3000–3600 cm−1 range (Fig. 7) (Liu et al., 2015). Finally, the FT-IR spectrum revels that the effective fabrication observed between g-C3N4 and N-CeO2, which is also confirming formation of g-C3N4/N-CeO2 nanocomposites by the existence of significant functional groups as C–N, s-triazine, O–H, N–H, and Ce–O (Yang et al., 2012). This superior FTIR results of g-C3N4/N-CeO2 nanocomposites, good greement with XRD results.

Photocatalytic studies

Photocatalytic activity of g-C3N4/N-CeO2 NCs

Using solar light, photocatalysis offers a potential way to fight water contamination (Nachimuthu et al., 2023). Together with other magnetic exposure to radiation, solar light is composed of around 46% visible light and 4% UV photons. The solar light intensity was measured as 1.20 × 10−5 Einstein L−1 s−1, which is done by ferrioxalato method. The concentration of degraded dye solution was analysed by UV–visible spectrophotometer in the time interval of 10 min upto 120 min.

Common photocatalysts, such as ZnO, CeO2, and TiO2, primarily absorb UV radiation and have a limited capacity to absorb visible light. Investigators have concentrated on creating nanocomposites that can capture the entire spectrum of solar light in order to overcome this constraint. In keeping with this pattern, we examined the photocatalytic performance of g-C3N4/N-CeO2 nanocomposites on a model contaminant solution of methylene blue (MB) dye (λmax = 663 nm) when exposed to solar light (Bai et al., 2014). The photocatalytic breakdown effectiveness of the parent photocatalysts and the g-C3N4/N-CeO2 nanocomposites during solar light exposure is shown in Fig. 8a.

Fig. 8
figure 8

Photocatalytic degradation of g-C3N4/N-CeO2 nanocomposites and its parent photocatalysts

The decomposition performances of the parent photocatalysts, g-C3N4 and N-doped CeO2 nanoparticles, for the MB dye are 32% and 40%, respectively, as shown in Fig. 8. On the other hand, the photocatalytic activity of the g-C3N4/N-CeO2 nanocomposites, which include 10 wt%, 20 wt%, 30 wt%, and 40 wt% g-C3N4/N-CeO2 NCs, varies from 56 to 97%. Amongst the binary nanocomposites, the 30% g-C3N4/N-CeO2 NCs exhibit the maximum activity at 97%, which is noteworthy. On the other hand, a modest drop in photocatalytic activity to 75% occurs when the g-C3N4 level is raised to 40%. Therefore, it is shown that 30% of g-C3N4 is the ideal concentration for degrading MB dye. The combined g-C3N4 and N-doped CeO2 nanoparticles in the hybrid structure of g-C3N4/N-CeO2 NCs lead to an increased degrading effectiveness. By properly separating photogenerated charges, this mixture reduces the rate of recombination. Moreover, the increased rate of deterioration of g-C3N4/N-CeO2 NCs can be ascribed to their increased surface area and increased absorption of visible light.

Figure 8b shows the Langmuir–Hinshlwood model (Li et al., 2015) that was used to determine the rate constant k and order of MB dye degradation for g-C3N4/N-CeO2 NCs. With this approach, a generalized kinetic equation is introduced.

$$\left( { - {\text{ln}}\left( {{\text{C}}_{{\text{t}}} /{\text{C}}_{0} } \right) = {\text{k}}_{{\text{t}}} } \right)$$

where C0 symbolizes the first concentration of dye; Ct is the concentration of dye after t minutes of irradiation, and k is the rate constant.For g-C3N4, N-doped CeO2 nanoparticles, and 30%g-C3N4/N-CeO2 NCs, the computed k values during solar light illumination were around 0.006 min−1, 1.28 min−1, and 2.01 min−1, respectively. According to our investigation, the degradation rate of g-C3N4/N-doped CeO2 nanocomposites is much greater than that of N-doped CeO2 nanoparticles.

As shown in Fig. 9, the decomposition performance of g-C3N4/N-CeO2 NCs was assessed by UV–visible spectrometry under solar light exposure. The capacity of g-C3N4/N-CeO2 NCs to break down MB dye molecules into mineralized species is shown by these spectrum measurements. Surprisingly, the absorption rate of MB dye gradually drops with sun light being exposed, a sign that macromolecules are breaking down into smaller components.

Fig. 9
figure 9

Time-dependant UV–visible spectral results of degradation of MB dye presence ofg-C3N4/N-CeO2 NCs

A comparison of the outstanding photocatalytic degradation efficacy of the g-C3N4 and CeO2 photocatalyst for the photodegradation of organic pollutant with formerly reported g-C3N4 and CeO2 based photosystems is compiled in Table 1. It was distinctly noticed that the g-C3N4 and CeO2 based photosystems in the current study exhibited superior photodegradation efficiency compared to the previously reported catalysts.

Table 1 Comparative data of photocatalytic degradation of organic pollutant using g-C3N4 based nanoparticles

Ankit Kumar Singh et al., demonstrate the preparation and application of NiCo2O4 decorated over a g-C3N4-based novel nanocomposite (NiCo2O4@g-C3N4). NiCo2O4@g-C3N4 nanocomposite was employed in the fabrication of a screen-printed carbon electrode-based innovative electrochemical sensing platform and the adsorptive removal of a food dye, i.e., fast green FCF dye (FGD). The adsorption phenomenon of FGD on NiCo2O4@g-C3N4 was best fitted (R2 = 0.99) with the Langmuir and Henry model, and the corresponding value of Langmuir adsorption efficiency (qm) was 3.72 mg/g for the removal of FGD within 60 min. Sachin Shoran et al., developed potentials of CeO2/g-C3N4 (CG) for photocatalytic degradation is harmful pollutants into nontoxic compounds without using oxidative agents. The photocatalytic results showed that CG2 effectively degraded rose bengal (RB) and crystal violet (CV) dyes when exposed to visible light irradiation as compared to pure GCN and CeO2. The Bi2MoO6/g-C3N4 binary heterostructure is synthesized via a straightforward ultrasonic chemical approach by Amira Masoud et al. The prepared 10% Bi2MoO6/g-C3N4 nanocomposite exhibits a significantly improved photocatalytic performance, with a degradation efficiency of 94.6%, (160 min) compared to the single components, Bi2MoO6 and g-C3N4, which have degradation efficiencies of only 33% and 31%, respectively. Liying Huang et al., was successfully prepared visible light active Cerium dioxide/graphitic carbon nitride (CeO2/g-C3N4) by a simple mixing-calcination technique by Liying Huang et al.. The Photocatalytic activities of the CeO2/g-C3N4 were examined by studying the degradation of methylene blue (MB) and 4-chlorophenol (4-CP) under visible light irradiation (> 400 nm). The CeO2/g-C3N4 composites showed higher photocatalytic activity than that of CeO2 and g-C3N4. The optimum photoactivity of CeO2/g-C3N4 exhibited the highest photocatalytic activity within the 70 min. The author revels that enhanced activities could be attributed to the synergetic effect between g-C3N4 and CeO2.

Effective decomposition processes depend on photocatalysts operating continuously. A substance that produces photons is considered advantageous if it is inexpensive, readily available, and resilient to light exposure. The degrading performance of g-C3N4/N-CeO2 NCs throughout five successive reuse and recycling operations, each lasting 90 min, is displayed in Fig. 10. After five exposures, there was no discernible decrease in dye degradation, despite small variations. The loss of photocatalyst during handling and centrifugation may be the cause of the modest decrease in degradation effectiveness. These results highlight how important excellent stability as well as effectiveness are for real-world use in photocatalysts.

Fig. 10
figure 10

Reusability of g-C3N4/N-CeO2 NCs for five successive cycles

Photocatalytic mechanism of g-C3N4/N-CeO2 NCs

Figure 11 shows a hypothesized process based on the optical and band arrangement features found in g-C3N4/N-CeO2 NCs. The following formula determines the locations of the conduction and valence bands in the semiconductor: E0CB = EC − 1\2 Eg, where χ is the semiconductor's absolute electronegativity (it is 5.56 eV for CeO2). On the hydrogen scale, EC stands for free electron energy (4.5 eV), and Eg for the photocatalysts band gap energy. N-doped CeO2 band gap was found to be 2.85 eV based on the findings of the band gap measurement.

Fig. 11
figure 11

Photocatalytic mechanism of g-C3N4/N doped CeO2 nanocomposites

N-doped CeO2 nanoparticles have calculated valence band (VB) and conduction band (CB) potentials of 2.43 V and − 0.33 V, respectively. On the other hand, g-C3N4 displays a CB bottom at − 1.18 V and a maximal VB parabola at 1.58 eV. g-C3N4 has a CB potential of − 1.18 eV, which is significantly smaller than the CB potential of N-doped CeO2 nanoparticles (− 0.33 eV). This implies that photogenerated holes on N-doped CeO2 nanoparticles may move to g-C3N4 across the formed interface, whereas excited electrons at the CB of g-C3N4 could migrate to the CB of N-doped CeO2 nanoparticles. As a result, this technique may be able to decrease charge recombination and increase the efficiency of photocatalytic reactions.

Reactive species studies

We carried out a reactive species quenching investigation in order to understand the degradation process of dyes based on MB, as shown in Fig. 12. The g-C3N4/N-CeO2 NCs potent contact between g-C3N4 and N-doped CeO2 prevents electron–hole recombination, which boosts the activity of dye degradation. Active radicals such as superoxide, holes, and hydroxyl radicals are essential for the photocatalytic destruction of organic pollutants. This was investigated by using benzoquinone (BQ), triethanolamine (TEOA), and isopropyl alcohol (IPA) as harvesters for hydroxyl, hole, and superoxide radicals, respectively. Out of all the nanocomposites that were evaluated, 30 wt% g-C3N4/N-CeO2 NCs showed the best photocatalytic effectiveness and were chosen for the scavenging investigation.

Fig. 12
figure 12

Scavenging activity of g-C3N4/N-CeO2 NCs

Even in the absence of scavenging components, the 30 wt% g-C3N4/N-CeO2 NCs demonstrated remarkable photocatalytic efficacy, degrading MB dye by 96.6% in just 90 min of being exposed to sun light. In contrast, the degradation efficacy dropped to 90.6%, 58.7%, and 43.29%, respectively, after scavengers such IPA, TEOA, and BQ were added to the photocatalytic solution. This decrease indicates that the main active species causing the decomposition processes are superoxide radicals and holes, with TEOA and BQ significantly reducing the efficacy by about 41.3% and 56.7%, respectively.

Conclusion

The desired outcome of this work is to combine g-C3N4 sheets with N-doped CeO2 nanoparticles to create g-C3N4/N-doped CeO2 nanocomposites. It has been verified that these nanocomposites successfully formed using a variety of characterisation methods, including PXRD, FT-IR, SEM, and TEM. Particularly, the nanocomposites enhanced absorption of visible light is demonstrated by the UV–visible DRS spectra. Effective charge separation is suggested by PL analysis, which lowers electron–hole recombination. Significantly, as compared with individual catalysts, the nanocomposites show improved MB dye degradation in the presence of solar irradiation. Their enhanced catalytic activity is further supported by photostability experiments and investigations on radical scavenging. These composite materials exceptional effectiveness can be attributed to their unique physicochemical characteristics, which have been extensively studied. Through the combined benefits of g-C3N4 and N-doped CeO2, these novel binary composites show great potential for a variety of uses for ecological remediation and transformation of energy.