James I the Conqueror was King of Aragon, Count of Barcelona, and Lord of Montpellier from 1213 to 1276; King of Majorca from 1231 to 1276; and Valencia from 1238 to 1276. His long reign—the longest of any Iberian monarch—saw the expansion of the Crown of Aragon in three directions: Languedoc to the north, the Balearic Islands to the southeast, and Valencia to the south. By a treaty with Louis IX of France, he achieved the renounce of any possible claim of French suzerainty over the County of Barcelona and the other Catalan counties, while he renounced northward expansion and taking back the once Catalan territories in Occitania and vassal counties loyal to the County of Barcelona, lands that were lost by his father Peter II of Aragon in the Battle of Muret during the Albigensian Crusade and annexed by the Kingdom of France, and then decided to turn south. His great part in the Reconquista was similar in Mediterranean Spain to that of his contemporary Ferdinand III of Castile in Andalusia.