On 27 July 1192, Saladin's army began the battle of Jaffa, capturing the city. Richard's forces stormed Jaffa from the sea and the Muslims were driven from the city. Attempts to retake Jaffa failed and Saladin was forced to retreat.
On 2 September 1192 Richard and Saladin entered into the Treaty of Jaffa, providing that Jerusalem would remain under Muslim control while allowing unarmed Christian pilgrims and traders to freely visit the city. This treaty ended the Third Crusade.