Islam is the major religion and the most widespread religion of the Maldives. It is also the official religion of Maldives. The Maldivians population consists of over 80 percent Muslims, with about 10 to 15 percent either unaffiliated or of other views.

The importance of the Arabs as traders in the Indian Ocean by the 12th century may partly explain why the last Buddhist king of Maldives Dhovemi converted to Islam in the year 1153 (or 1193, for certain copper plate grants give a later date).
The king thereupon adopted the Muslim title and name (in Arabic) of Sultan (besides the old Divehi title of Maha Radun or Ras Kilege or Rasgefānu) Muhammad al Adil, initiating a series of six Islamic dynasties consisting of eighty-four sultans and sultanas that lasted until 1932 when the sultanate became elective.The formal title of the Sultan up to 1965 was, Sultan of Land and Sea, Lord of the twelve-thousand islands and Sultan of the Maldives which came with the style Highness.
The person traditionally deemed responsible for this conversion was a Sunni Muslim visitor named Abu al Barakat, or more commonly known as the Shaykh Yusuf bin Ahmad al-Kawneyn. His venerated tomb now stands on the grounds of Hukuru Mosque in the capital Malé. Built in 1656, this is the oldest mosque in Maldives.
Following the Islamic concept that before Islam there was the time of Jahiliya (ignorance), in the history books used by Maldivians the introduction of Islam at the end of the 12th century is considered the cornerstone of the country's history.

Compared to the other areas of South Asia, the conversion of the Maldives to Islam happened relatively late. Arab Traders had converted populations in the Malabar Coast since the 7th century, and the Muslim General Muhammad Bin Qāsim had converted of Sindh and Southern Punjab to Islam at about the same time. The Maldives remained a Buddhist kingdom for another five hundred years (perhaps the south-westernmost Buddhist country) until the conversion to Islam.

Arab interest in Maldives also was reflected in the residence there in the 1340s of Ibn Battutah. The well-known North African traveler wrote how a Maghrebi, one Abu Barakat the Berber, was believed to have been responsible for spreading Islam in the islands, reportedly convincing the local king after having subdued Ranna Maari, a demon coming from the sea.[1] Even though this report has been contested in later sources, it does explain some crucial aspects of Maldivian culture. For instance, historically Arabic has been the prime language of administration there, instead of the Persian and Urdu languages used in the nearby Muslim states. Another link to North Africa was the Maliki school of jurisprudence, used throughout most of North Africa, which was the official one in the Maldives until the 17th century.[2]

Some scholars have suggested the possibility of Ibn Battuta misreading Maldive texts,and having a bias towards the North African, Maghrebi narrative of this Shaykh, instead of the East African origins account that was known as well at the time.[3] Even when Ibn Battuta visited the islands the governor of the island at that time was Abd Aziz Al Mogadishawi, a Somali[4]

Scholars have posited another scenario where this Abu Barakat might have been a native of Berbera, a significant trading port on the north western coast of Somalia.[5]Barbara or Barbaroi (Berbers), as the ancestors of the Somalis were referred to by medieval Arab and ancient Greek geographers, respectively.[6][7][8] This is also seen when Ibn Batuta visited Mogadishu, he mentions that the Sultan at that time 'Abu Bakr ibn Shaikh Omar', was a Berber(Somali). According to scholars Abu Barakat Al Barbari was Yusuf bin Ahmad al-Kawneyn, a famous native Somali scholar [9] known for establishing the Walashma dynasty of the Horn of Africa.[10] After his conversion of the population of Dogor (now known as Aw Barkhadle), a town in Somalia, he is also credited to have been responsible for spreading Islam in the Maldivian islands, establishing the Hukuru Miskiiy Mosque, and converting the Maldivian population into Islam.[11][12]Ibn Batuta states the Maldivian king was converted by Abu Al Barakat Al Berber (Blessed Father of Somalia).[13] This scenario would also help explain the usage of the Arabic language and the predominance of the Maliki school on the islands.

Another interpretation, held by the more reliable local historical chronicles, Raadavalhi and Taarikh,[14][15] is that Abu Barakat was an Iranian from Tabriz called Yusuf Shamsud-din, also locally known as Tabrīzugefānu. In the Arabic script the words al-Barbari and al-Tabrizi are very much alike, owing to the fact that at the time, Arabic had several consonants that looked identical and could only be differentiated by overall context (this has since changed by addition of dots above or below letters to clarify pronunciation – For example, the letter "B" in modern Arabic has a dot below, whereas the letter "T" looks identical except there are two dots above it). The first reference to an Iranian origin dates to an 18th-century Persian text.[16]

The much venerated tomb of this saint now stands opposite the grounds of Hukuru Miski, in the centre of Malé.[17]

The Maldives have had a long history of Sufic orders, as can be seen in the history of the country such as the building of tombs. They were used until as recently as the 1980s for seeking the help of buried saints. They can be seen today next to some old mosques and are considered today as cultural heritage.

Other aspects of tassawuf, such as ritualised dhikr ceremonies called Maulūdu (Mawlid) — the liturgy of which included recitations and certain supplications in a melodical tone—existed until very recent times. These Maulūdu festivals were held in ornate tents specially built for the occasion. At present Islam is the official religion of the entire population, as adherence to it is required for citizenship.

Islam is the state religion of Maldives, and adherence to it is legally required for citizens by a revision of the constitution in 2008: Article 9, Section D states that a non-Muslim may not become a citizen of the Maldives.[18]

The traditional Islamic law code of shariah, known in Dhivehi as sariatu, forms the Maldives' basic code of law, as interpreted to conform to local Maldivian conditions by the President, the attorney general, the Ministry of Home Affairs, and the Majlis. On the inhabited islands, the miski, or mosque, forms the central place where Islam is practiced. Because Friday is the most important day for Muslims to attend mosque, shops and offices in towns and villages close around 11 a.m., and the sermon begins by 12:30 p.m.

Adhan (prayer) sessions are held five times daily. Mudimu, the mosque caretakers, make the call. Most shops and offices close for fifteen minutes after each call. During the ninth Muslim month of Ramadan, cafés and restaurants are closed during the day, and working hours are limited.

In Malé, the Islamic Center and the Grand Friday Mosque, built in 1984 with funding from the Persian Gulf states, Pakistan, Brunei, and Malaysia, are imposing elegant structures. The gold-colored dome of this mosque is the first structure sighted when approaching Malé. In mid-1991 Maldives had a total of 725 mosques and 266 women's mosques.[19]

In the late 1990s the spread of Wahhabism challenged more traditional Islamic practices. After the 2004 tsunami, Saudi-funded preachers gained even more influence.[20][21]
Indian Newspaper The Week reported that charities that served as fronts for Pakistani terrorist groups like Lashkar e Toiba used disaster relief missions to tsunami-torn Maldives as an opportunity to recruit potential jihadists.[22]

The Guardian estimates that 50-100 fighters have joined ISIS and al Qaeda from the Maldives.[21] The Financial Times puts the number at 200.[23] Radicalization often happens in jail where the "only thing to read is the Qur’an or religious literature. There are also lots of older militants and young guys look up to them."[21]

2007 Malé bombing: On 29 September 2007 a homemade bomb went off in Sultan Park near the Islamic Centre in the Maldivian capital Malé, injuring 12 foreign tourists. In December, three men were sentenced to 15 years in jail after they confessed to the bombing. Two of those imprisoned, Mohamed Sobah and Ahmed Naseer - both Maldivian natives in their early twenties - had their sentences changed from incarceration to three-year suspended sentences under observation and were later set free in August 2010.[22]

In February 2012 almost all the Maldives National Museum's pre-Islamic artifacts, dating back to before the 12th century, were destroyed during an attack: "Some of the pieces can be put together but mostly they are made of sandstone, coral and limestone, and they are reduced to powder." He said the museum had "nothing [left] to show" of the country's pre-Islamic history.[24][25] Among the damaged objects were a six-faced coral statue, an 18 in (46 cm) high bust of Buddha, as well as assorted limestone and coral statues[26]

After 2012 all the administrations worked to tackle the growing number jihadist. No major incidents were recorded however politically motivated speeches from previous politicians believe the number is still rising which is yet to be proved.

^Honchell, Stephanie (2018), Sufis, Sea Monsters, and Miraculous Circumcisions: Comparative Conversion Narratives and Popular Memories of Islamization, Fairleigh Dickinson University and the University of Cape Town, p. 5, In reference to Ibn Batuta's Moroccan theory of this figure, citation 8 of this text mentions, that other accounts identify Yusuf Al Barbari as East African or Persian. But as fellow Maghribi, Ibn Battuta likely felt partial to the Moroccan version.

^Somalia; Wasaaradda Warfaafinta iyo Hanuuninta Dadweynaha (1972). The Writing of the Somali Language: A Great Landmark in Our Revolutionary History. Ministry of Information and National Guidance. p. 10. Aw Barkhadle, he was a native, who lived in about 1,000 years ago and is buried now in a ruined town named after him, Aw Barkhadle, which is a few miles away from Hargeisa.

^Nehemia Levtzion; Randall Pouwels (Mar 31, 2000). The History of Islam in Africa. Ohio University Press. p. 242. Aw Barkhadle, is the founder and ancestor of the Walashma dynasty

^Mackintosh-Smith, Tim (2010). Landfalls: On the Edge of Islam from Zanzibar to the Alhambra. Hodder & Stoughton. p. 384.

^Galaal, Musa (1980). "Les liens historiques entre la corne de l'Afrique et les îles du golfe Persique et de l'océan Indien par les voies de l'Islam". Relations historiques à travers l'océan Indien. Belgique: l'Organisation des Nations Unies pour l'éducation, la science et la culture. p. 28. ISBN92-3-201740-7. Translated from French to English: Now this holy man - this is the new point (Al Kownayn) - seems to be the same as that which the people of the Maldive Islands, near India, called Barakath Al-Barbari who spread Islam in this region as he did in the Horn of Africa. We only know in which of these two regions he lived first and this prompted him to change sectors of business.The tomb of Sheik Barkhadle (Yusuf Al Kownayn) is in a ruined city called Dhogor, near Hargeisa, in the north of the Democratic Republic of Somalia.

^ abAnupam Dasgupta (2011-01-23). "A Male-volent link". The Week. Archived from the original on 2011-02-07. It surprised India when Nasheed freed two prime accused in the 2007 Sultan Park bombings in Male in August 2010. We are planning to send Mohamed Sobah and Ahmed Naseer [the two accused] back to jail. We feel they are dangerous to our society and we are not willing to risk internal security, said Ahmed Muneer, deputy commissioner of the Maldives police.