In the 17th century its ruins were used as a quarry for the building of the Blue Mosque .
The ruins were used as material to build the Blue Mosque.