The XIV century Shirvanshahs’ Tomb is located in the prayer yard. The mausoleum consists of a quadrilateral building with a stone dome cover stuck in a geometric pattern. The tomb's portal is very rich. The name of Ali is repeated 24 times in the twelve-pointed medallion on arch of the entrance cavity. The verse from the Quran praising Allah is given at the top of the portal. Shirvanshah Khalilullah I ordered to build this sacred tomb for his mother and son.