The Qur'anic view contends that the primary purpose of revealed scriptures is to unite mankind. Look at what the Holy Qur'an has to say: 'Mankind was one single nation. And Allah sent Messengers with glad tidings and warnings; and with them He sent the Book in truth, to judge between people in matters wherein they differed.' (2:213)
It becomes evident from this that religious scriptures were revealed in order that a divine ruling, of a final nature, may be made in the matters in which mankind differed. Thus, the Qur'an declares that it, too, was revealed so that mankind may be freed of the dissensions that were rife amongst themselves. 'And We sent down the Book to thee so that That thou shouldst make clear to them those things in which they differ, and that it should be a guide and a mercy to those who believe.' (16:64)
In order that the fate of the people of the book, who had boasted of their own high status, by which they were ultimately led to dissension and anarchy, not fall upon its believers, the Qur'an exhorts them to stick fast to the last of the scriptures as well as to its practical manifestation as enshrined in the life and conduct of the Prophet. 'And hold fast, All together, by the Rope which Allah (stretches out for you), and be not divided among yourselves.' (3:103) The commentators are unanimous in their opinion that the 'rope of Allah' mentioned here indicates the Qur'an.
In short, therefore, the first and foremost duty of the Scripture is to lead people unto the truth and to eliminate, thereby, all dissension and anarchy.