I would like to know about the concept or history of 12th Imam al Mahdi (as). I heard he went to ghaiba. I got confused as I am a new student learning shia islam

I would recommend you to listen to this very good series to gain info about Imam Mahdi (aj)