After they lost Jerusalem, a Mongol invasion swept through, and in 1244 the Mameluke dynasty of Egypt took control, ruling Jerusalem for the next 250 years.
The Mameluke dynasty of Egypt ruled Jerusalem fairly.