Those who have not studied Leibniz are often most familiar with his worldview from Voltaire's satirical depiction of Dr. Pangloss in Candide. Pangloss espouses the philosophy that "all is for the best in the best of all possible worlds." It is passages such as this which clearly irritated Voltaire. Leibniz tells the reader that wherever they think they see chaos, they are merely failing to discern a divine cosmic order which is not immediately apparent.
This view of the world is an Enlightenment attempt to "justify the ways of God to men," as Milton puts it in Paradise Lost, a process known as theodicy. The problem of evil is an ancient one, put by Epicurus in the following terms: if God is both omnipotent and completely benevolent, then why is there suffering in the world? Leibniz's theodicy offers the following answer: What you perceive as suffering, chaos, or evil, is not what you think it is. If you had a divine perspective, you would see that it is necessary for a plan that is, overall, benevolent and wise. Even an event such as the fall of man is described by Leibniz as the "felix culpa," (the fortunate fall) because it allowed both the redemption of humanity through the love of Christ, and the development of a complex postlapsarian civilization, which includes the Enlightenment itself.