It is believed by Twelver Shia Muslims that these Imams have the knowledge of each and every thing which is told them by God. Ali was the first Imam of this line every Imam was the son of the previous Imam, except Husayn ibn Ali who was the brother of Hasan ibn Ali. The last Imam is Imam al-Mahdi, who is alive and will appear in the end times.