The present silver-domed building largely dates from 1034, but the original mosque was built in 715.
The original mosque included a prayer space, social hall, and kitchen.
The original mosque was destroyed by an earthquake in 1766; the present building dates from 1800.
The fountain in the courtyard is not a part of the original mosque.
Several of these columns belonged to the original mosque.
Some remains of the original mosque can still be seen.
The original mosque was an open-air building, with no gender separation.
The original mosque on this site was supposedly the second oldest in the trans-Caucasus.
In 1978 a new mosque was built on the site, but preserved the remains of the original mosque.
Many of the white marble columns belong to the original mosque.