sentences:  In 1740 the Grand Vizier Hacı Ahmet Paşa restored the mosque and built the "Şadırvan" (fountain).Damage caused by the earthquakes of 1648 and 1763 was repaired in 1831 under the reign of Sultan Mahmud II.In 1762 the minaret was first built.