In 1260, after Mamluk Sultan Baibars defeated the Mongol army, the minarets were built onto the sanctuary. Six years later, while on pilgrimage to Hebron, Baibars promulgated an edict forbidding Christians and Jews from entering the sanctuary, and the climate became less tolerant of Jews and Christians than it had been under the prior Ayyubid rule. The edict for the exclusion of Christians and Jews was not strictly enforced until the middle of the 14th-century and by 1490, not even Muslims were permitted to enter the caverns.