The architecture of a mosque is shaped most strongly by the regional traditions of the time and place where it was built. As a result, style, layout, and decoration can vary greatly. Nevertheless, because of the common function of the mosque as a place of congregational prayer, certain architectural features appear in mosques all over the world.