It commemorates the birth of ninth-century Imam al-Mahdi al-Muntadar .