The siege of Jerusalem lasted from September 20 to October 2, 1187, when Balian of Ibelin surrendered the city to Saladin. Earlier that summer, Saladin had defeated the kingdom's army and conquered several cities. The city was full of refugees and had few defenders, and it fell to the besieging armies. Balian bargained with Saladin to buy safe passage for many, and the city came into Saladin's hands with limited bloodshed. Though Jerusalem fell, it was not the end of the Kingdom of Jerusalem, as the capital shifted first to Tyre and later to Acre after the Third Crusade. Latin Christians responded in 1189 by launching the Third Crusade led by Richard the Lionheart, Philip Augustus, and Frederick Barbarossa separately. In Jerusalem, Saladin restored Muslim holy sites, became the first Custodian of the Three Holy Mosques and practiced tolerance toward Christians.