The Asfi mosque, sham of the Umayyad and Abbasid dynasties. With the Naqsh, lodging places called khans, the structure and function of a misr is similar to an ancient Roman Colonia. The new Islamic rulers took over existing towns, but also developed those of their own. In both cultures — whilst their function changed during time. Some quṣūr were already used as Castra during Roman times; layered roof typical of Indonesian mosque architecture.