Initially, the reaction of 1-methylquinoxalin-2(1
H)-one (
1a), styrene (
2a), and ethyl diazoacetate (
3a) was carried out to optimize the reaction conditions in the presence of water with the irradiation of 3 W blue LED lamps (445–465 nm). Gratifyingly, the desired ester-containing quinoxalin-2(1
H)-one
4aa was obtained in 34% yield when the reaction was conducted using 1,2,3,5-tetrakis(carbazol-9-yl)-4,6-dicyanobenzene (4CzIPN, 2 mol%) as photocatalyst in the presence of DIPEA in CH
3CN (
Table 1, entry 1). Encouraged by this result, the influence of the base was firstly investigated. The screening of other bases such as DABCO, DBU, Cs
2CO
3, KOH, and K
3PO
4 disclosed that DBU could give product
4aa in relatively higher yield (
Table 1, entry 3). Then, a series of photocatalysts were examined to improve the reaction efficiency and the result showed that 4CzIPN was still the best photocatalyst (
Table 1, entries 7–14). Next, the solvent effect was tested to improve the reaction efficiency. Among various solvents such as CH
2Cl
2, THF, 1,4-dioxane, EtOAc, DCE, acetone, DMF, DME, MeOH, DMSO, EtOH and H
2O examined, CH
2Cl
2 was found to be the best reaction medium to afford product
4aa in 63% yield (
Table 1, entry 15, and details in Supporting information). No transformation was observed without visible-light irradiation (
Table 1, entry 16). Further investigation of reaction condition was performed under the irradiation of other blue LED lamps with different wavelength ranges (
Table 1, entries 17–20). The results demonstrated 10 W blue LED lamps (450–455 nm) was the optimal light source to give the product
4aa in 70% yield (
Table 1, entry 20). The optimization of the loading of photocatalyst found that the highest yield of
4aa (77%) was obtained when 1 mol% 4CzIPN was employed in this reaction (
Table 1, entry 22). The desired product
4aa was not detected in the absence of photocatalyst (
Table 1, entry 23). Finally, when the model reaction was conducted in air, the desired product could also be obtained in 61% yield (
Table 1, entry 24).