Justin Taylor, citing Peter Kreeft on one of C.S. Lewis’ brilliant observations:
But there is a deeper classification, and Lewis uses it. Science and religion both aim at conforming the mind to objective truth, objective reality (science conforms our mind to the nature of the universe, and religion conforms our mind to the mind of God and our will to the will of God).
Magic and technology, on the other hand, try to conform objective reality to the human will. That is why they both arose at the same time—not the Middle Ages but the Renaissance, not the Age of God but the Age of Man. Both are Faustian, Promethean. The difference is, of course, that technology works while magic doesn’t (usually). But their end, their goal, the purpose behind them, the human values and desires and state of soul that set them in motion, are the same.