In this period of aggressive posturing the ulama were quick to denounce foreign influences to safeguard the purity of Islam. This led to unfortunate situations for Mamluk Jews. In 1300 Sultan Al-Nasir Qalawan ordered all Jews under his rule to wear yellow headgear to isolate the Egyptian Jewish community.  This law would be enforced for centuries and later amended in 1354 to force all Jews to wear a sign in addition to yellow headwear. On multiple occasions the ulema persuaded the government to close or convert synagogues. Even major places of pilgrimage for Egyptian Jews such as the Dammah Synagogue were forced to close in 1301. Jews subsequently were excluded from bath houses and were prohibited to work in the national treasury. This repression of the Jewish community would continue for centuries.
