Precise timekeeping is key to many technologies, motivating the search for more-stable reference oscillators for use as clocks. The resonant X-ray excitation of a long-lived nuclear state in scandium-45 makes it a potential reference oscillator for a nuclear clock that could surpass atomic clocks in stability and resilience against external perturbations.