Task: Text Categorization
Input (English): Ninety percent of this mans army was wiped out at the Battle of Montgisard, one of his rare defeats, but he rebounded to a victory in the subsequent Battle of Jacobs Ford, after which he besieged Kerak. Earlier, he had seized the territory of as-Salih Ismail after coming to power upon the death of his former superior Nur ad-Din. He signed the Treaty of Ramla, which concluded his conflict with an invading army. The siege of Tiberias preceded a victory at which he set fire to underbrush, captured Guy of Lusignan, defeated Raymond of Tripoli, and annihilated the Crusaders massed at Hattin. For ten points, name this first ruler of the Ayyubid Dynasty, the rival of Richard the Lionheart in the Third Crusade.
Output (English): History