The fortress shared the fate of almost all fortresses. War techniques and strategies changed, and fortification systems became useless, especially since Krak was not located within the city where it could act as a military citadel. The entire Muslim settlement lived inside the castle. The great halls were divided into small rooms and small houses where the local poor lived. There was a mosque, baths, and other rooms necessary for life.