The Albigensian Crusade led to the deaths of approximately 20,000 men, women and children, Cathar and Catholic alike, decimating the number of practising Cathars and diminishing the region's distinct culture. The conflict took on a political flavor, directed not only against the heretics, but also the nobility of Toulouse and vassals of the Crown of Aragon, and finally brought the region firmly under the control of the king of France. King Peter II of Aragon, Count of Barcelona, was directly involved in the conflict, and was killed in the course of the Battle of Muret in 1213. The conflict largely ended with the Treaty of Paris of 1229, in which the integration of the Occitan territory in the French crown was agreed upon.