Plan of the mosque is rectangular. There is a small hall, small prayer room for women and serving rooms. The northern portal, rotated to a burial vault of Shirvanshahs is more solemn than the eastern one. The latter, which was coming down to underground exit, was intended for habitants of the palace. - Interior. Two-tier windowed prayer room is covered with cupola with spherical sails. Mihrab is located in the southern end of the palace. Cupola area over one a tier women prayer room ceding to cupola of the hall with its dimensions and replacing its outlines. Aperture of the mosque’s portal is clearly described on severe background of prismatic volume, ended with two cupolas with slightly sharpening calottes. - Minaret. Trunk of the minaret is surrounded by an inscription, a ligature of which has a date of 845 (1441/42). Details of sherefe’s stalactites are subtly modeled.