Jerusalem was conquered by the Crusaders in 1099 during the First Crusade and served as the capital of the Latin Kingdom of Jerusalem for most of the 12th century, but it was besieged and captured by Saladin, the Kurdish Muslim warrior and Ayyubid Sultan of Egypt, after his decisive victory at Hattin in 1187. The Crusaders negotiated a surrender, and the two parties agreed to a peaceful handover of the city to Saladin, preventing the sort of massacre that had occurred when? Discuss