In Islamic eschatology, the Mahdi is the prophesied redeemer of Islam who will rule for seven, nine, or nineteen years before the Day of Judgment and will rid the world of evil.