First Crusade: Battle of Ascalon Crusaders under the command of Godfrey of Bouillon defeat Fatimid forces led by Al-Afdal Shahanshah. This is considered the last engagement of the First Crusade.

The Battle of Ascalon took place on 12 August 1099 shortly after the capture of Jerusalem, and is often considered the last action of the First Crusade. The crusader army led by Godfrey of Bouillon defeated and drove off a Fatimid army, securing the safety of Jerusalem.The Crusaders completed their primary objective of capturing Jerusalem on 15 July 1099. In early August, they learned of the approach of a 20,000-strong Fatimid army under vizier al-Afdal Shahanshah. Under Godfrey's command the 10,200-strong Crusader army took the offensive, leaving the city on 10 August to risk everything on a great battle against the approaching Muslims. The Crusaders marched barefoot, carrying the relic of the True Cross with them, accompanied by patriarch Arnulf of Chocques. The army marched south from Jerusalem, approaching the vicinity of Ascalon on the 11th and capturing Egyptian spies who revealed al-Afdal's dispositions and strength.(The distance from Jerusalem to Ascalon is ca 77 km)

At dawn on 12 August, the Crusader army launched a surprise attack on the Fatimid army still sleeping in its camp outside the defensive walls of Ascalon. The Fatimids had failed to post enough guards, leaving only a part of their army capable of fighting. The Crusaders quickly defeated the half-ready Fatimid infantry, while the Fatimid cavalry barely fought at all. The battle was over in less than an hour. The Crusader knights reached the center of the camp, capturing the vizier's standard and personal baggage, including his sword. Some Fatimids fled into the trees and were killed by Crusader arrows and lances, while others begged for mercy at the Crusaders' feet and were butchered en masse. The terrified vizier fled by ship to Egypt, leaving the Crusaders to kill any survivors and gather up a vast amount of loot. Ibn al-Qalanisi estimated 12,700 Fatimid dead.The first Muslim attempt to recapture Jerusalem ended in complete defeat, but Godfrey failed to exploit the victory and take Ascalon, whose Fatimid garrison was willing to surrender only to Raymond of Toulouse, a condition Godfrey would not accept. The Fatimid base in Ascalon remained a thorn in the side of the Kingdom of Jerusalem and would not fall until the siege of Ascalon of 1153.

The First Crusade (1096–1099) was the first of a series of religious wars, or Crusades, initiated, supported and at times directed by the Latin Church in the medieval period. The objective was the recovery of the Holy Land from Islamic rule. While Jerusalem had been under Muslim rule for hundreds of years, by the 11th century the Seljuk takeover of the region threatened local Christian populations, pilgrimages from the West, and the Byzantine Empire itself. The earliest initiative for the First Crusade began in 1095 when Byzantine emperor Alexios I Komnenos requested military support from the Council of Piacenza in the empire's conflict with the Seljuk-led Turks. This was followed later in the year by the Council of Clermont, during which Pope Urban II supported the Byzantine request for military assistance and also urged faithful Christians to undertake an armed pilgrimage to Jerusalem.

This call was met with an enthusiastic popular response across all social classes in western Europe. Mobs of predominantly poor Christians numbering in the thousands, led by Peter the Hermit, a French priest, were the first to respond. What has become known as the People's Crusade passed through Germany and indulged in wide-ranging anti-Jewish activities, including the Rhineland massacres. On leaving Byzantine-controlled territory in Anatolia, they were annihilated in a Turkish ambush led by the Seljuk Kilij Arslan at the Battle of Civetot in October 1096.

In what has become known as the Princes' Crusade, members of the high nobility and their followers embarked in late-summer 1096 and arrived at Constantinople between November and April the following year. This was a large feudal host led by notable Western European princes: southern French forces under Raymond IV of Toulouse and Adhemar of Le Puy; men from Upper and Lower Lorraine led by Godfrey of Bouillon and his brother Baldwin of Boulogne; Italo-Norman forces led by Bohemond of Taranto and his nephew Tancred; as well as various contingents consisting of northern French and Flemish forces under Robert Curthose (Robert II of Normandy), Stephen of Blois, Hugh of Vermandois, and Robert II of Flanders. In total and including non-combatants, the forces are estimated to have numbered as many as 100,000.

The crusaders marched into Anatolia. With Kilij Arslan absent, a Frankish attack and Byzantine naval assault during the Siege of Nicea in June 1097 resulted in an initial victory for the crusaders. In July, the crusaders won the Battle of Dorylaeum, fighting Turkish lightly-armoured mounted archers. Next the crusaders marched through Anatolia, suffering casualties from starvation, thirst, and disease. The decisive and bloody Siege of Antioch was fought beginning in 1097 and the city was captured by the crusaders in June 1098. Jerusalem was reached in June 1099 and the Siege of Jerusalem resulted in the city being taken by assault from 7 June to 15 July 1099, during which its defenders were ruthlessly massacred. The Kingdom of Jerusalem was established as a secular state under the rule of Godfrey of Bouillon, who shunned the title of "king". A counterattack was repulsed that year at the Battle of Ascalon, ending the First Crusade. Afterwards the majority of the crusaders returned home.

Four Crusader states were established in the Holy Land: the Kingdom of Jerusalem, the County of Edessa, the Principality of Antioch, and the County of Tripoli. The Crusader presence remained in the region in some form until the loss of the last major Crusader stronghold in the Siege of Acre in 1291. After this loss of all Crusader territory in the Levant, there were no further substantive attempts to recover the Holy Land.