Graphitic carbon nitride (g-C 3N 4) was successfully functionalized with a low platinum loading to give rise to an effective and stable catalytic material. The synthesized g-C 3N 4/Pt was fully characterized by XRD, N 2 physisorption, XPS, SEM-Mapping, and TEM techniques. Remarkably, XPS analysis revealed that Pt was in a dominant metallic state. In addition, XPS together with XRD and N 2 physisorption measurements indicated that the g-C 3N 4 preserves its native structure after the platinum deposition process. g-C 3N 4/Pt was applied to the catalytic conversion of levulinic acid to N-heterocycles under continuous flow conditions. Reaction parameters (temperature, pressure, and concentration of levulinic acid) were studied using 3 levels for each parameter, and the best conditions were employed for the analysis of the catalyst's stability. The catalytic system displayed high selectivity to 1-ethyl-5-methylpyrrolidin-2-one and outstanding stability after 3 h of reaction.