Solid-state spin-photon interfaces that combine single-photon generation and long-lived spin coherence with scalable device integration-ideally under ambient conditions-hold great promise for the implementation of quantum networks and sensors. Despite rapid progress reported across several candidate systems, those possessing quantum coherent single spins at room temperature remain extremely rare. Here we report quantum coherent control under ambient conditions of a single-photon-emitting defect spin in a layered van der Waals material, namely, hexagonal boron nitride. We identify that the carbon-related defect has a spin-triplet electronic ground-state manifold. We demonstrate that the spin coherence is predominantly governed by coupling to only a few proximal nuclei and is prolonged by decoupling protocols. Our results serve to introduce a new platform to realize a room-temperature spin qubit coupled to a multiqubit quantum register or quantum sensor with nanoscale sample proximity