Those who became the Shia held that any leader of the Ummah must be a direct descendant of the Prophet; those who became the Sunni argued that lineal descent was not required if the candidate met other standards of faith and knowledge.
Sunnis believe that any leader of the Ummah has to be directly descended from the Prophet, the Shias believe leaders don't have to be.