many early mosques have a square or rectangular plan. they also have a prayer hall and an enclosed courtyard. this is known as "arab-plan". the first mosques of this type were built during the umayyad dynasty.