In 1271, after most of the Crusader strongholds had fallen into Baibars' hands, the Mamluk leader himself besieged the castle using several military engineering battalions. After about three days of siege Baibars' troops took the "rabad" or faubourg, the next day the "bashura" or outer bailey fell, and on the fifteenth day the German defenders, which were still resisting in the keep, surrendered. Due to prior negotiations between Baibars and the Crusaders, the latter were allowed to leave the castle with all of their belongings and return to Acre. After the fall of that city in 1291, the Teutonic Knights made Venice their headquarters.