When rumors spread that the Jews of Jerusalem were planning to aid Napoleon's conquest of the city, Algazi publicly declared loyalty to the Turks and gathered the community to offer prayers for an Ottoman victory at the Wailing Wall. Together with Rabbi Mordechai Meyuchas, Algazi organised a Jewish contingent to reinforce the city's defenses.