 Elijah will be the herald of the eschaton.If necessary, Messiah ben Joseph will wage war against the evil forces and die in combat with the enemies of God and Israel.According to Saadia Gaon the need for his appearance will depend on the spiritual condition of the Jewish people.