the same warrant. The elliptical cover with a slightly pointed top is protected from the outside by a faceted stone dome. The western facade of the rotunda is decorated with arabesques which are stylized with a portal, the channeled half-cupola of the lancet conch is supported by a system of finely modeled stalactites (mucarnases). Overhead planes are covered with ornament. The portal leads to the canopy connecting the hall with the service rooms located one above the other. There are several versions of the appointment of Divan-khana. It was supposed to serve as a building for legal proceedings, receptions or state council, or perhaps, it was a mausoleum. The most common hypothesis is based on the common name of the monument, according to which it was assumed that it is a court, or a reception room of the palace, or the building of an "order". The features of the style and the incompleteness of the part of the decoration work allow one to date Divan-khana to the end of the 15th century, the time of the capture of Baku by the Safavid troops. The features of the plan, the dungeon-crypt and the content of the lapidary inscription above the entrance to the hall (Koran, Sura 10, verses 26 and 27) indicate his memorial appointment. The origin of the original architectural structure is also associated with the pre-Islamic funerary tradition. Historian Sara Ashurbeyli believes that even in pre-Islamic times, the occupied Divan-khan territory was a sacred place (it is assumed that the cup-shaped grooves served to collect the sacrificial blood of animals) The Keygubad Mosque In the old days, a mosque was added to the mausoleum of Seyyid Yahya Bakuvi, which was called the "old" mosque. It is known as the "Kei-Kubad Mosque". This mosque was built at the end of the fourteenth and the beginning of the fifteenth century after the destruction of the older building on which it was built. The mosque was covered with a dome, which was supported by four stone columns that stood inside the mosque. The clutches of the mosque were tied up with the laying of the mausoleum. In 1918, the "old" mosque burned down during a fire. The image of this mosque and its brief description was given in the article of Andrei Pavlinov, who visited Baku and saw the mosque in 1888, published in the third issue of the journal "Materials on