The split in the Muslim community caused by Muhammad's death resulted in the division of Muslims into two major groups: the Sunni, who believed that the caliph should be elected by the community, and the Shia, who believed that the caliph should be a direct descendant of Muhammad.