Islamic architecture encompasses a wide range of both secular and religious styles from the foundation of Islam to the present day, influencing the design and construction of buildings and structures in Islamic culture. The principal Islamic architectural types are: the Mosque, the Tomb, the Palace and the Fort. From these four types, the vocabulary of Islamic architecture is derived and used for buildings of less importance such as public baths, fountains and domestic architecture.
There are strict and detailed requirements in Sunnifiqh for a place of worship to be considered a masjid, with places that do not meet these requirements regarded as musallas. There are stringent restrictions on the uses of the area formally demarcated as the masjid (which is often a small portion of the larger complex), and, in the Sharia, after an area is formally designated as a masjid, it remains so until the Last Day.
Quba Mosque is the first mosque in history, and mosques have developed significantly since Quba mosque. Many mosques have elaborate domes, minarets, and prayer halls. Mosques originated on the Arabian Peninsula, but are now found in all inhabited continents. The mosque serves as a place where Muslims can come together for salah (prayer) (Arabic: صلاة, ṣalāt) as well as a center for information, education, and dispute settlement. The imam leads the prayer.