God's purpose in creation was to let us prove ourselves. The plan was explained to us in the spirit world before we were born. We were valiant enough there to qualify for the opportunity to choose against temptation here to prepare for eternal life, the greatest of all the gifts of God.