Task: Text Categorization
Input (English): This ruler sought a military alliance with Mongol commander Eljigidei against the Khwarizmians, and later sent emissaries to Guyuk Khan and Mongke Khan, including the famous William of Rubruck. He was almost offered leadership of the Mamluk sultanate after the murder of the last Ayyubid sultan Turanshah, but was rejected in favor of his earlier enemy Baibars. Despite victories over Baibars at Damietta and Mansurah, he was finally defeated and captured after the Battle of Fariskur, thus ending that crusade. This ruler established the Parliament of Paris, and his faith led him to purchase the Crown of Thorns and construct Saint Chapelle. For 10 points, name this leader of the Seventh and Eighth Crusades, a thirteenth century king of France who was canonized as a saint for his piety.
Output (English): History