Question: why was al aqsa built?
Answer: Muslims believe that Muhammad was transported from the Great Mosque of Mecca to al-Aqsa during the Night Journey. ... When the Crusaders captured Jerusalem in 1099, they used the mosque as a palace and the Dome of the Rock as a church, but its function as a mosque was restored after its recapture by Saladin in 1187.