The original split between Sunni and Shi happened shortly after the death of the Prophet Muhammad. The Sunni people are considered as the orthodox branch of Islam, traditionally led by Ahl-al-Sunnah, which means people of tradition. They are guided by tradition and put it first. Shia emphasize learning by the successors of Muhammad.
After the first caliphates, after Muhammad's death, there was a dispute over who would manage caliphate, be caliph. The Caliphates were centers of political and religious power. The Sunnis had a stance, guided by the tradition, that any Muslim who proved to be capable could be a caliph, while Shia claimed that only the successors of Muhammad can be caliphs, those who are related to him.