God’s purpose was to create a world in which His glory could be manifest in all its fullness. The glory of God is the overarching goal of creation. In fact, it is the overarching goal of everything He does. The universe was created to display God’s glory (Psalm 19:1), and the wrath of God is revealed against those who fail to glorify God (Romans 1:23). Our sin causes us to fall short of God’s glory (Romans 3:23), and in the new heaven and new earth, the glory of God is what will provide light (Revelation 21:23). The glory of God is manifest when His attributes are on perfect display, and the story of redemption is part of that.
The classic objection to this position is that God’s foreknowledge and foreordination of the fall damages man’s freedom. In other words, if God created mankind with full knowledge of the impending fall into sin, how can man be responsible for his sin? The best answer to this question can be found in the Westminster Confession of Faith chapter III:
“God, from all eternity, did, by the most wise and holy counsel of his own will, freely, and unchangeably ordain whatsoever comes to pass; yet so, as thereby neither is God the author of sin, nor is violence offered to the will of the creatures; nor is the liberty or contingency of second causes taken away, but rather established” (WFC, III.1)
What this is saying is that God ordains future events in such a way that our freedom and the working of secondary causes (e.g., laws of nature) are preserved. Theologians call this “concurrence.” God’s sovereign will flows concurrently with our free choices in such a way that our free choices always result in the carrying out of God’s will (by “free choices” we mean that our choices are not coerced by outside influences).