A mosque (/mɒsk/; from Arabic: مَـسْـجِـد, romanized: masjid, lit. place of ritual prostration) is a place of worship for Muslims.MosqueArabic: مَـسْـجِـد MasjidAfter their time in Mina has passed, pilgrims head back to Mecca.2010 Aerial view of the Great Mosque of Mecca (al-Masjid al-Ḥarām), the largest mosque in the world, with the Kaaba in the centerReligionAffiliation IslamAny act of worship that follows the Islamic rules of prayer can be said to create a mosque, whether or not it takes place in a special building.[2] Informal and open-air places of worship are called musalla, while mosques used for communal prayer on Fridays are known as jāmiʿ.[1] Mosque buildings typically contain an ornamental niche (mihrab) set into the wall that indicates the direction of Mecca (qiblah),[1] ablution facilities and minarets from which calls to prayer are issued.[1][2] The pulpit (minbar), from which the Friday sermon (khutba) is delivered, was in earlier times characteristic of the central city mosque, but has since become common in smaller mosques.[3][1] Mosques typically have segregated spaces for men and women.[1] This basic pattern of organization has assumed different forms depending on the region, period and denomination.[2]Mosques commonly serve as locations for prayer, Ramadan vigils, funeral services, Sufi ceremonies, marriage and business agreements, alms collection and distribution, as well as homeless shelters.[1][3] Historically, mosques were also important centers of elementary education and advanced training in religious sciences. In modern times, they have preserved their role as places of religious instruction and debate, but higher learning now generally takes place in specialized institutions.[1][3] Special importance is accorded to the Great Mosque of Mecca (center of the hajj), Prophets Mosque in Medina (burial place of Muhammad) and the Al-Aqsa Mosque in Jerusalem (believed to be the site of Muhammads ascent to heaven).[1] In the past, many mosques in the Muslim world were built over burial places of Sufi saints and other venerated figures, which has turned them into popular pilgrimage destinations.[1][2]The first mosque was built by Muhammad in Medina. With the spread of Islam, mosques multiplied across the Islamic world. Sometimes churches and other temples were converted into mosques, which influenced Islamic architectural styles.[3] While most pre-modern mosques were funded by charitable endowments, modern states in the Muslim world have attempted to bring mosques under government control.[1] Increasing government regulation of large mosques has been countered by a rise of privately funded mosques of various affiliations and ideologies, many of which serve as bases for different Islamic revivalist currents and social activism.[3] Mosques have played a number of political roles. The rates of mosque attendance vary widely depending on the region.mosque architecture