In the summer of 1904 the official decision of Baku City Duma has been announced on Financing the construction of the Taza Pir Mosque by one of the richest women of Ashur khan family Nabat Khanum Ashurbeyova. In the decision there were stressed especially the idea of building the Taza Pir Mosque provided the expenses of bride-money donated her. Nabat Khanum particularly paid attention of being Azeri the architect of the mosque planned to be built in the future. The purpose of the assignment was to get acquainted with the architecture of the famous mosques. Interesting return trip Zivar bey presented a project of the two minarets mosque in the eastern style to Nabat Khanum. It is the project will be built in the future.
Construction of Tezepir Mosque started in 1905, the day of the Mabas holiday. Laying the foundation of the mosque turned into crowded ceremony. As a sign of respect to Haji Zeynalabdin Tagıyev, simultaneously as he is considered the bricklayer laid the first stone in the foundation of the mosque. The chief of the construction Zivar bey Ahmedbeyov involved the most capable artisans here. Home builder was Haji Abbas, laid stones Hajı Kheyrulla, Mammad Hanifa, the organizers of the interior of the mosque were Kerbala Mirza, Salman Atayev and Sultan. The construction began in 1905 continued until 1914. The construction of the mosque undertake Nabat Khanum has died at the age of 117 on December 7 1912. As a sign of a great respect to Nabat Khanum, she was buried in the right side of the door, on the porch of the mosque. He bequeathed his son the completion of the mosque. Nabat Khanum’s son adequately fulfilled his mother’s will and he was buried in the courtyard of the mosque. The construction of the mosque was completed, the last stone is empowered to Zeynalabdin Tagiyev put in the middle of a large dome. The construction ended in 1914 of Taza Pir Mosque is a first religious building built of white stones. Taza Pir Mosque was completely a new stage not only in the urban structure in Baku, but also in the religious buildings of all Absheron for its spatial unity and architectural feature. Despite Teze Pir Mosque was far away from the city center,geographical position and location on the hill allowed it a clear view of the city's other points. The main facade of the mosque crowned three-wide porch, raised minarets and domes solemn symmetrical composition in the form of wings have been resolved. One of the characteristic features are seen more European education than national architecture, the creative product of the high skills professional architect.
In a different times of our history, march genocide days, bolshevic regime, struggle for national liberation increased the role as a religious center of Taza Pir Mosque. During the events on March 1918, the appeal of Nariman Narimanov to the public in Taza Pir Mosque, on September 15, 1918, the speech in the pulpet of the mosque of the commander Caucasian Islamic Army Nuru pasha liberated Baku from enemy forces, On September 5, 1993, participation and speech of the national leader Heydar Aliyev
on the birth of Prophet's in the mosque, it shows either the political or religious position of the Taza Pir Mosque over the history. During a number of mosques has become a cultural and educational institutions in the Soviet Union or completely destroyed, the document belong to1934 on Tazapir it is mentioned to keep assignment changed of the mosque is appropriate. In different years Taza Pir Mosque turned into tea factory, summer theatre and store warehouse, but managed preserve itself. In 1944, the restoration and reorganization of the Spiritual Board of Muslims of the Caucasus Taza Pir Mosque began to start its activities. During the struggle for national liberation - from 19 to 20 January 1990 as a result of the atrocities committed by the Soviet army special forces the funerals of the killed people were moved into the courtyard of the Taza Pir Mosque. In 1918 March the fate of people exposed to the genocide of Armenian-Dashnak forces repeated again. At this period Taza Pir was a witness to the historical decision. The funerals of the people fired by soviet army were decided to bury them in cemetery in which the 1918 March massacre victims were buried. The reconstruction project based on instructions of President Ilham Aliyev in 2005 was prepared to restore the mosque and surrounding areas. The architectural works of the project assigned to A.Mammadov, restoration assigned to F.Miralayev and interior design assigned to E.Mikailov. The awkward single-storey buildings were destroyed and in place of it there were built 3 large crops with 5 storey-buildings for the educational buildings of the Caucasus Muslim administrative office and Baku Islam University. On July 6, 2009, after renovation and construction works the grand opening ceremony was held with the participation of President Ilham Aliyev.