Like with many other parables of Jesus, in this parable He teaches what will happen at the end of time. All of humanity shall be judged on the way they have lived and how they have acted. The parable gives a picture of how humans will be divided at the Final Judgement.