In this passage, Peter is sifted by Satan. Satan's goal was to destroy the faith of Peter. However, Jesus is praying for Peter. So we notice Peter's faith is shaken, but not destroyed. God uses this trial to fashion Peter into the man of God, that will change the world. Gods purpose is served even in the failed attempt of Satan.