shia believe that muhammad named ali his successor, he became the first imam
shia believe that ali appointed him by divine instruction and therefore leadership should follow in the family line
the twelver branch of shia islam believes that there have been 12 imams in total
muhammad al-mahdi was the last imam and kept alive and hidden somewhere on earth and will return with Jesus to bring justice and equality