Wood materials are often damaged due to exposure to environmental factors including humidity changes, temperature fluctuations, and ultraviolet radiation, resulting in surface aging, deformation, and cracking. Therefore, developing a new wood coating with good mechanical properties and weather resistance is conducive to improving the usability and service life of wood as an outdoor material. In this study, graphitic carbon nitride (g-C3N4) with a characteristic crystal structure was synthesized using melamine as raw material. By constructing a g-C3N4 /polyurethane acrylate co-crosslinked network, a UV-curable wood coating with excellent interfacial adhesion was prepared, which retained the natural aesthetic texture of the wood and imparted good wear resistance, anti-wetting property, and aging resistance to the wood material. Subsequently, the formation process and cross-linking reaction mechanism of the coating were revealed by XRD, FTIR and XPS measurements. Compared with untreated samples, coatings with a cross-linked network structure exhibited enhanced resistance to external environmental changes. As the content of the g-C3N4 increased (>1.0 %), the mechanical properties were significantly improved, with the mass loss rate and damaged area decreasing by 56.9 % and 60.0 %. Meanwhile, with the increased cross-link density of the coating, the water and heat resistance of the wood increased by 22.77 % and 260 %, respectively. After a seven-day UV aging resistance test, the ΔE values only changed by 10.28 %, showing good weathering resistance. This design and synthesis of wood coating provides an effective technology for the long-term use of outdoor wood material.