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.