Kars Castle (Kars Kalesi) was built in CE 1153 by order of a Saltuqid sultan, Melik Izzeddin, who was connected to the Seljuks. Although much of the castle was destroyed during various wars, it has a magnificent appearance when viewed from the city. The basalt stone castle featured 3.5-kilometre-long city walls; seven of the bastions on those walls survive to the present day. There are four entrances: the Water Gate (Su Kapısı / Çeribaşı Kapısı), the Kağızman Gate (Kağızman Kapısı /Orta Kapı), the Behram Paşa Gate (Behram Paşa Kapısı and the Main Gate (Ana Kapı) which opens to the cliff. The castle also contains the Tomb of Celal Baba (Celal Baba Türbesi), who died in the 13th century, along with military lodgings, an ammunition depot, and a masjid.