Ramla was founded circa 705–715 CE by the Umayyad governor and future caliph Sulayman ibn Abd al-Malik. Ramla lies along the route of the Via Maris, connecting old Cairo (Fustat) with Damascus, at its intersection with the road connecting the port of Jaffa with Jerusalem.
The armies of the First Crusade took Ramla hastily evacuated town without a fight. In the early years of the Crusader Kingdom of Jerusalem though, control over this strategic location led to three consecutive battles between the Crusaders and Egyptian armies from Ascalon. As Crusader rule stabilized, Ramla became the seat of a seigneury in the Kingdom of Jerusalem (the Lordship of Ramla within the County of Jaffa and Ascalon). It was a city of some economic significance and an important way station for pilgrims travelling to Jerusalem. The Crusaders identified it with the biblical Ramathaim and called it Arimathea.