The siege of Ascalon took place in 1153, resulting in the capture of that Egyptian fortress by the Kingdom of Jerusalem. Background Ascalon was Fatimid Egypt's greatest and most important frontier fortress. The Battle of Ascalon was fought outside the city in 1099 in the aftermath of the First Crusade and the fall of Jerusalem to the Crusaders. Although the crusaders were victorious, internal disputes in their camp allowed Ascalon to remain in Egyptian hands. Thereafter, the Fatimids were able to launch raids into the kingdom every year from this fortress, and the southern border of the crusader kingdom remained unstable. If this fortress fell, then the gateway to Egypt would be open. Therefore, the Fatimid garrison in Ascalon remained strong and large. After the failure of the Second Crusade in 1148, Conrad III of Germany attempted to besiege the fortress, but was forced to withdraw when no help was forthcoming from Jerusalem or other crusaders. Meanwhile, the territory to the east and north of Jerusalem was united under Nur ad-Din Zangi, who ruled Mosul and Aleppo and brought Damascus under his influence after the Second Crusade. In 1149 Nur ad-Din defeated the Principality of Antioch at the Battle of Inab. Nur ad-Din was unable to overrun Antioch entirely, nor was he able to penetrate far into the Kingdom of Jerusalem, but likewise there was little Jerusalem could do in the north and the east with the whole area united under one strong ruler. The crusader kingdom would have to look towards Egypt if they wanted to expand. Around 1150, Baldwin III of Jerusalem rebuilt Gaza City, which at that point lay in ruins. The city was handed over to the Knights Templar, and provided some defense against the continual raids from Ascalon, to the northeast. Since the establishment of the kingdom, other fortresses had also been built to watch Ascalon. These were Ibelin (Yibneh) about northeast of Ascalon near the coast, Blanchegarde (Tell es Safi) about east-northeast, Beth Gibelin (Bait Jibrin) about east and Montgisard near Ramla to the northeast. However, Jerusalem itself was soon divided by civil war. Baldwin III was the legal heir to the kingdom, but his mother Queen Melisende had been ruling as regent since 1143. In 1152 Baldwin finally demanded full control of the kingdom; after some brief fighting he was able to accomplish this goal. Later that year Baldwin also defeated a Seljuk