Dying Earth is a fantasy series by the American author Jack Vance, comprising four books originally published from 1950 to 1984. Some have been called picaresque. They vary from short story collection to fix-up (novel created from older short stories) perhaps all the way to novel.
The first book in the series, The Dying Earth, was ranked number 16 of 33 "All Time Best Fantasy Novels" by Locus in 1987, based on a poll of subscribers, although it was marketed as a collection and the ISFDB calls it a "loosely connected series of stories".
The stories of the Dying Earth series are set in the distant future, at a point when the sun is almost exhausted and magic has reasserted itself as a dominant force. The Moon has disappeared and the Sun is in danger of burning out at any time, often flickering as if about to go out, before shining again. The various civilizations of Earth have collapsed for the most part into decadence and its inhabitants overcome with a fatalistic outlook. The Earth is mostly barren and cold, and has become infested with various predatory monsters (possibly created by a magician in a former age).
Dying Earth is a subgenre of science fiction, fantasy, or science fantasy which takes place in the far future at either the end of life on Earth or the End of Time, when the laws of the universe themselves fail. Themes of world-weariness, innocence (wounded or otherwise), idealism, entropy, (permanent) exhaustion/depletion of many or all resources (such as soil nutrients), and the hope of renewal tend to pre-dominate.
The Dying Earth genre differs from the apocalyptic subgenre in that it deals not with catastrophic destruction, but with entropic exhaustion of the Earth. The genre was prefigured by the works of the Romantic movement. Jean-Baptiste Cousin de Grainville's Le Dernier Homme (1805) narrates the tale of Omegarus, the Last Man on Earth. It is a bleak vision of the future when the Earth has become totally sterile. Lord Byron's poem "Darkness" (1816) shows Earth after the Sun has died.
Another early example is La Fin du Monde (The End of the World, aka Omega: the last days of the world), written by Camille Flammarion and published in France in 1893. The first half of the novel is dealing with a comet on a collision course with earth in the 25th century. The last half focuses on Earth's future history, where civilizations rise and fall, humans evolve, and finally, its end as an old, dying, and barren planet.
Beneath a dimming sun great cities moulder and decay
In brooding nights of gloom and on
Through melancholy days
In the manses of the mages great magics still hold sway
And those who dwell within are wont to say
As the sun fades from the sky
This ancient earth prepares to die
Here at the end of all time
A slow demise so saturnine
As aeons pass unheeded subtle Sorcerers parlay
Among the haunted hills strange creatures stalk unwary prey
There may come no tomorrow so all live for today
And the crimson twilight turns to grey
AS the earth prepares to die
The waning sun fades from the sky
Here at the end of all time