The Safed attacks were an incident that took place in Safed soon after the Turkish Ottomans had ousted the Mamluks and taken Levant during the Ottoman–Mamluk War in 1517. At the time the town had roughly 300 Jewish households. The severe blow suffered took place as Mamluks clashed bloodily with the new Ottoman authorities. The view that the riot's impact on the Jews of Safed was severe is contested.
Historians link the event to the general conflict taking place in the country between the incoming Ottoman regime and its opponents and note that the Jews suffered maltreatment during the war. Accounts of the attack against the Jews in Safed were recorded by historian Rabbi Elijah Capsali of Candia, (Crete) and Rabbi Joseph Garson, who was living in Damascus at the time. According to these reports, many Jews were killed and left injured. They were compelled to flee the city and their property was plundered. Scholars debate whether or not the event led to a decline in the Jewish population of Safed, but all agree that a few years later, Jews had re-established a significant presence in the city.
The attack may have been initiated by retreating Mamluk soldiers who accused the Jews of treacherously aiding the Turkish invaders, with Arabs from the surrounding villages joining the melee. Alternatively, the attack occurred during an attempt by local Mamluk sheikhs to reassert their control after being removed from power by the incoming Turks. David suggests that the violence may have erupted after rumors of an Ottoman defeat in Egypt led to clashes between supporters of the old regime and those who backed the newly imposed Turkish authority. Supporters of the deposed Mamluk governor attacked Ottoman officials and after having murdered the Ottoman governor, the mob turned upon the Jews and rampaged through the Jewish quarter, the Jews suffering particular maltreatment.
Many Jews were reportedly killed while others were wounded or had their property pillaged. According to Garson, the Jews were "evicted from their homes, robbed and plundered, and they fled naked to the villages without any provisions." Many subsequently fled the city, but the community was soon rehabilitated with the financial help of Egyptian Jewry.
The Jewish community quickly recovered. The many Jews who had fled and sought refuge in neighbouring villages returned, and within 8 years the community had reestablished itself, exceeding the former level of 300 households. The Ottoman overthrow of the Mamluks brought about important changes. Under the earlier dynasty, Egyptian Jews were guided by their nagid, a rabbi also exercising the functions of a prince-judge. This office was abolished because it represented a potential conflict with the jurisdiction of the hahambaşi or chief rabbi in Istanbul, who represented all Jews in the empire, and who had, via a Jewish officer (kahya), direct access to the sultan and his cabinet, and could raise complaints of injustices visited upon Jewish communities by governors in the provinces or Christians.