 While Shias and Sunnis differ on the nature of the Mahdi, many members of both groups believe that the Mahdi will appear at the end of the world to bring about a perfect and just Islamic society.In Shia Islam "the Mahdi symbol has developed into a powerful and central religious idea.