The Seventh Crusade (1248–1254) was the first of the two Crusades led by Louis IX of France. Also known as the Crusade of Louis IX to the Holy Land, it aimed to reclaim the Holy Land by attacking Egypt, the main seat of Muslim power in the Near East. The Crusade was conducted in response to setbacks in the Kingdom of Jerusalem, beginning with the loss of the Holy City in 1244, and was preached by Innocent IV in conjunction with a crusade against emperor Frederick II, Baltic rebellions and Mongol incursions. It initially met with success but ended in defeat, with most of the army – including the king – captured by the Muslims. Following his release, Louis stayed in the Holy Land for four years, doing what he could towards the re-establishment of the kingdom. The struggle between the papacy and Holy Roman Empire paralyzed Europe, with few answering Louis' calls for help following his capture and ransoming. The one answer was the Shepherds’ Crusade, started to rescue the king and meeting with disaster. In 1254, Louis returned to France having concluded some important treaties. The second of Louis' Crusades was his equally unsuccessful 1270 expedition to Tunis, the Eighth Crusade, where he died of dysentery shortly after the campaign landed. Background In the years that followed the Barons' Crusade, both the Kingdom of Jerusalem and the Ayyubid dynasty were both beset by internal strife that ultimately proved disastrous for both. The loss of Jerusalem and defeat at Gaza in 1244 ultimately marked the collapse of Christian military power in the Holy Land and led to the rise of the Mamluk sultanate. It is against this backdrop that Louis IX of France and pope Innocent IV began the Seventh Crusade to recover Jerusalem. Jerusalem from 1241 to 1244 The Barons' Crusade ended in 1241 with the Kingdom of Jerusalem at its largest since 1187 after the negotiations made by Theobald I of Navarre. When Richard of Cornwall completed his negotiations with the Muslims, he then secured the support of the influential family of John of Ibelin, the Old Lord of Beirut. Holy Roman Emperor Frederick II had been crowned as king in March 1229, and the Ibelins agreed to accept him as regent as long as Simon of Montfort were appointed bailli until Conrad II of Jerusalem was of age and could receive the kingdom. When Richard returned