In 1774, a Naqshbandi Sufi Lodge was built in the mosque courtyard.
During the reign of Mahmud II, the repair in the mosque-tawhidkhana section remained largely limited to decoration; in the same period, the harem section was also repaired.
In the 1894 earthquake, the mosque-tawhidkhana section suffered severe damage; the dome collapsed and the minaret was destroyed down to below the balcony.
To repair the earthquake damage, the building was repaired in 1897 and 1906.
After the closure of the Sufi lodges and zawiyas in 1925, the building remained abandoned and rapidly fell into ruin.
In 1935, the mosque-tawhidkhana, selamlık, dervish cells, and shadirvan were demolished; the ruined parts were used for a time as gecekondu housing.
In 1997-1998, the building was reconstructed in accordance with its original form by the Istanbul Metropolitan Municipality.
Prominent Features:
It is also known as the Sufi Lodge of the Maktul Mustafa Pasha Complex.
The Sufi Lodge is a Naqshbandi Sufi Lodge founded in 1753 in the Otakçılar area outside the city walls.
Its founder, Çorlulu Köse Bahir Mustafa Pasha, was executed in 1765; his severed head was buried in the Naqshbandi Sufi Lodge that he had commissioned.
The printing house established within the Sufi Lodge in the 19th century enabled the printing of many works between 1862 and 1880.
After the reconstruction, the tawhidkhana section functions as a mosque.