After the death of the Islamic prophet Muhammad, a dispute arose about his legitimate successor. The Islamic community was divided into those who adhered to Abu Bakr, named Sunnis, and those who sided with Ali, called Shia. Concurrently, people who sided with Ali were called Alevis, defined as "those who adore to Ali and his family".[8] Therefore, some authors use Shiism synonymously with Alevism.[9] However, Alevism is not Shiism, but affected by Shiism[9] and although they share some common beliefs with the Twelver Shia, their rites and practises are wholly different from Shiism.[8] Thus Alevism incorporates Turkish beliefs present during the 14th century[8] such as Shamanism and Animism, which mixed with Extremist Shias and Sufi beliefs that were adopted by some Turkish tribes, similar to the Sufi-Ghulat view of the first Safavids, and later integrated with Sunnism.[9]