Tradition holds that the mosque was first built in the late 12th century, although it underwent many renovations over the years.
Tradisi berpendapat bahwa masjid tersebut pertama kali dibangun pada akhir abad ke-12, meskipun telah mengalami banyak renovasi selama bertahun-tahun.