1792, from Arabic mahdiy, literally "he who is guided aright," past participle of hada "to lead in the right way." Spiritual and temporal leader expected by some Muslims. Applied c. 1880 to insurrectionary leaders in the Sudan who claimed to be him. Related: Mahdism.