The circadian clock temporally coordinates metabolic homeostasis in mammals. Central to this is heme, an iron-containing porphyrin that serves as prosthetic group for enzymes involved in oxidative metabolism as well as transcription factors that regulate circadian rhythmicity. The circadian factor that integrates this dual function of heme is not known. We show that heme binds reversibly to the orphan nuclear receptor Rev-erbalpha, a critical negative component of the circadian core clock, and regulates its interaction with a nuclear receptor corepressor complex. Furthermore, heme suppresses hepatic gluconeogenic gene expression and glucose output through Rev-erbalpha-mediated gene repression. Thus, Rev-erbalpha serves as a heme sensor that coordinates the cellular clock, glucose homeostasis, and energy metabolism.