It is a substantial challenge to obtain single-phase ceramics with self-lubricating properties. Most conventional lubricated ceramics benefit from the addition of solid lubricants, which largely deteriorate theirs mechanical properties. Here, we report a single-phase (HfMoNbTaTi)C system high-entropy ceramic with self-lubricity inspired by the novel high-entropy design concept and regulation of high-temperature lubrication components (with different Mo contents). The formation mechanism of the single-phase structure is ascribed to the increasing of carbon vacancies with the increasing of Mo content. Meanwhile, the tribological performances are greatly enhanced at high temperature. Especially for (Hf0.149Mo0.404Nb0.149Ta0.149Ti0.149)C0.745 ceramic (with 20 wt% Mo) against Al2O3 ball at 900 °C, the average friction coefficient is as low as 0.6, and its wear rate is reduced an order of magnitude. The results show that the self-lubrication mechanisms are tribo-chemical reactions to generate lubricating tribo-films.