The Diri Baba mausoleum is a unique monument, a two-storeyed mausoleum-mosque dating back to the 15th century, located opposite an ancient cemetery on the way from Baku to Shamakhi. For centuries, local residents have revered the legend that a sacred person named Diri Baba was buried here and remained imperishable. However, numerous legends and mystical events surround this monument, attracting pilgrims and curious individuals since the 17th century.
The mausoleum's construction is remarkable, embedded in the cliff by the architect, giving it an appearance of being "hanging" or alienated from the ground. Its architecture impresses with austerity, purity of lines, and the contrast of its bright, smooth walls against the rough, dark cliff backdrop, exuding grandeur.
Interestingly, the second storey, rather than the first, is considered the main part of the building. Visitors enter through a small corridor covered with an octagonal cupola before ascending half-dark stairs carved into the cliff to reach the burial vault. The hall, adorned with a spherical cupola, features a carved funeral text indicating the name of a ruler of the Shirvanshahs, Ibrahim I of Shirvan.
The mausoleum's architecture harmoniously blends with the picturesque surroundings, set against a backdrop of rocks and greenery. It stands as a masterpiece of the Shirvan architectural school and a testament to the ancient masters' artistic prowess. Protected by the government, the Diri Baba mausoleum remains a testament to Azerbaijan's rich cultural heritage.