The present silver-domed building largely dates from 1034, but the original mosque was built in 715.
The original mosque dates from 715, but the current building is mostly from 1034.
The square building is largely from 1990 and replaced the original mosque from 1034.