Shia Muslims believe that just as a prophet is appointed by God alone, only God has the prerogative to appoint the successor to his prophet. They believe God chose Ali to be Muhammad's successor, infallible, the first caliph (khalifa, head of state) of Islam. Muhammad, before his death, designated Ali as his successor