The siege of Safed was part of the campaign of the Mamlūk sultan Baybars I to reduce the Kingdom of Jerusalem. The castle of Safed belonged to the Knights Templar and put up strong resistance. Direct assault, mining and psychological warfare were all employed to force the garrison to surrender. It was ultimately tricked into surrendering through treachery and the Templars were massacred. Baybars repaired and garrisoned the castle.