The Magic Goes Away
by Larry Niven
The Warlock, whose actual name is both unknown and unpronounceable, The Warlock realizes that magic is fueled by a magicians, as it was through their magic that nations enforced their wills both internally and abroad. The widespread diminishing of magical power in The Magic Goes Away triggered a quest on the part of the most powerful of the magicians of the time to harness a new source of magic (the Moon), resulting in the events described in the book.
It was eventually discovered (in The Magic May Return) that mana was originally carried to Earth and the other bodies of the solar system on the solar wind, replenishing mana slowly over time. However, at some point in the "recent" past (a few thousand years ago) a god created an invisible shield between Earth and Sun that intercepted the solar mana and caused the eventual decline of magic on Earth.Traditional fantasy creatures inhabit Niven's Magic universe, but devolve to normal animals when deprived of mana. For example, a unicorn becomes a simple horse.