The Muslim ruler who defeated the Mongols