They managed to control much of the country for nearly a century before the Muslim leader Saladin (Salah-ad-Din) defeated them in 1187.
They were defeated by Saladin, a Muslim leader, and lost control of the large part of the country they had.