It was a type of fortress intended for the accommodation of the garrison (army or troop). The term is of Arabic origin. Refuge.