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.