The mosque had been built on the southern side of the Temple Mount by the king.
By about 715, the El-Aksa Mosque, third holiest place of prayer in Islam (after Mecca and Medina), had been built on the southern side of the Temple Mount.