Pir Mardakan Khanqah
Pir Mardakan Khanqah (Azerbaijani: Pir Mərdəkan xanəgahı) is historic architectural monument located in the village of Goylar, 16 km south-west of Shamakhi district of the Azerbaijan Republic. The complex includes a tomb, a dynasty building and small auxiliary buildings. It was built in XIII-XIV centuries. According to some sources, this is the tomb of Seyid Mardakani, one of the famous scholars of his time.
|Pir Mardakan Khanqah|
Azerbaijani: Pir Mərdəkan xanəgahı
|Architectural style||Architectural school of Shirvan-Absheron|
|Town or city||Shamakhi|
Some of the remaining inscriptions on the grave stone and in the wall were read by M. Nematova. On these inscriptions it is shown that the monument was built in 1188 – 1203 (583 – 600 of Hijri calendar. According to the style characteristics, history of the monument is dated back to the early XIII century.
There is an ancient cemetery, caravanserai complex around the khanqah. An inscription on the facade of the monument, written in the Arabic written in thuluth script with kufic element, says: "In the Name of Allah, the merciful and the gracious. This is the grave of the Sheikh, the Imam, the greatest scientist, the believer, Tair Taj Al-Huda Mardakani Ibn Ali. May Allah have mercy upon them..." 
It is possible to clarify history of the monument based on the second inscription on the tomb. A small part, two lines of the inscription fixed on the left wall, on the left side of entering from the door, remains: "The greatest padishah, khagan... Farrukhzad ibn Fazilalmuwahhid Manuchihr..."  The author explains that this is ruler is Shirvanshah Farrukhzad I, the son of Shirvanshah Manuchihr III. He also lived in the XIII century.
The scientist notes that there is a place named Madak in Iranian Azerbaijan. The "-ani" suffix indicates that the owner of the grave is from there. The word "Madakani" transformed into "Mardakan", over the history.
The tomb, which is a part of the complex has reached today's era with almost its original view. These mausoleums, which have other examples in the architecture of Azerbaijan, typically consist of a combination of two-domed and tower-shaped tombs. As examples of this type of mausoleum in architecture of Azerbaijan, the tomb in Alinjachay Khanqah in Nakhchivan and other tombs can be. The plan of the Pir Mardakan mausoleum repeats the very coincidental version of the tombs with domes. By volume, these types of tombs consist of combination of two combinations. The bottom part is with dome and tower, and the upper part is covered with dome. The upper part looks independent from outside in terms of its composition, not as a continuation of the bottom part since usually in such tombs there is no gradual transition between cube-shaped and the upper tower parts.
As mausoleums with dome were temple-type buildings, people used to come and pay visit to buried and hold religious ceremonies in such places. Therefore, these type of mausoleums were also used as a mosque. Internal tomb part of the mausoleum square shaped according to structure of it and through squinches in the corners it turns into an octagon. Eight-edged prism on the octagon is covered with pyramidal tent. When remotely looking at the tomb, it resembles an ordinary octagonal tomb because relief of the earth covers the lower-cubed portion. The size of outer walls of it is 4.6x5 m, and the internal walls are 2.6x2.6 m. The height of the square part is 3 m, the height of the pyramid is 4.7 m.
From the east side of the tomb khanqah building with three rooms is fixed. Large room is 4.4x7.3 m in size and is for worship. Only one of the rooms reached today's era. The other two rooms are completely destroyed.
This monument belongs to a group of tombs of Azerbaijan with towers and domes according to many features of it. Monuments that share similarities with Pir Mardakan Khanqah according to the structural and architectural features, monuments similar to Pir Mardakan Khanate are spread in other Turkic countries. For example, in Turkmenistan there are several architectural monuments repeating the architectural features of this tomb. Fakhraddin Razi and Sheikh Sharif mausoleums in Kunya-Urgench can be examples.
- "PİR MƏRDƏKAN TÜRBƏSİ" (in Azerbaijani). shamakhi-encyclopedia.az. Retrieved 1 March 2018.
- А. В. Салаьзаде – К датировке некоторых памятников Азербайджана, ИАНА, 1952, № 5 p. 69
- M.Nemətova. "Azərbaycan pirləri". Baku: 1992, p. 20.
- M.Nemətova. "Azərbaycan pirləri". Baku: 1992, p. 21 - 23
- K. M. Məmmədzadə - Azərbaycanda inşaat sənəti, Baku, Elm, 1978, p. 50 - 51
- Н. М. Бачинский – Архитектурные памятники Туркмении, вып 1, Ашкабад, 1939, p. 13