 In 1177, Saladin mounted a major invasion of the Kingdom of Jerusalem from Egypt and was thoroughly defeated by Baldwin IV (the "Leper King") at the Battle of Montgisard.Henceforth, the Muslim leader learned to respect the young Crusader king's military talents.In 1179, Saladin defeated Baldwin at the Battle of Marj Ayyun in Lebanon.