During the Crusades Jerusalem changed hands multiple times, being captured by the Crusaders in 1099 and recaptured by Saladin in 1187. It remained under Islamic control through the Ayyubid and Mamluk periods, until it became part of the Ottoman Empire in 1517.-Wikipedia.