After the Arab conquest of Damascus in 634 , the mosque was built on the site of a Christian basilica dedicated to John the Baptist ( Yahya ) , honored as a prophet by Christians and Muslims alike .
The mosque holds a shrine which is said to contain the head of John the Baptist ( Yahya ) , honored as a prophet by Muslims and Christians alike .