GK Global
← Trails & Tales

History · Architecture · Long read · 13 min read

The First Mosque? Cheraman Juma Masjid, Malik Dinar and the Timber Mosques of Kerala

Tradition says India's first mosque was built at Kodungallur in 629, while the Prophet was still alive, after a Chera king sailed to Arabia. The evidence tells a slower and in some ways richer story, of Arab and Persian merchants who settled the Malabar ports and built mosques that look like Kerala temples.

By Gopakumar Rajan for GK Global, Adimali, Munnar · Trails & Tales by GK

A low mosque with a steep red-tiled roof, a carved wooden gable and whitewashed walls, in the style of a Kerala temple
The Cheraman Juma Masjid at Methala, Kodungallur, after its restoration: a tiled roof and gabled front in the Kerala style, with the twentieth-century dome and minarets removed. Photo: Arjunullas, via Wikimedia Commons, CC BY 4.0; resized and enhanced by GK Global.

Drive north from Kodungallur towards Methala and you pass a low building with a sloping tiled roof, a gabled front and carved wooden doors. Without the signboard you might take it for a Kerala temple or an old tharavad house. It is the Cheraman Juma Masjid, which tradition calls the first mosque in India.

Inside, a brass oil lamp of the kind found in Kerala temples is said to have burned without going out for centuries. Behind the prayer hall are two old tombs, traditionally those of Habib ibn Malik and his wife. Non-Muslim visitors come in large numbers, and the mosque is often held up as a symbol of Kerala's religious harmony.

Tradition dates it to 629, while the Prophet Muhammad was still alive. The evidence tells a slower and in some ways richer story. This article sets the two side by side; as always, our own assessments are clearly marked.

At a glance

Arabs on the coast before Islam

Arab, Persian and Jewish ships were trading on the Malabar coast long before the seventh century. Pepper, ginger and cardamom went west; horses, gold and dates came east. Traders waited months for the monsoon to turn, and some settled. Historians such as M. G. S. Narayanan have argued that the earliest Mappila Muslims descended from these merchants and the local families they married into, and that when Arabia became Muslim, so did many of their kin on the coast.

A wooden country boat on calm backwaters lined with coconut palms
The backwaters near Kodungallur, close to the ancient port of Muziris, where Arab and Persian ships once anchored. Photo: Gopakumar Rajan, GK Global.

The legend of Cheraman Perumal

The best-known story of how Islam came to Kerala runs like this. The last Chera king, Cheraman Perumal, saw the moon split in two in the night sky. Arab pilgrims passing through Kodungallur told him that the Prophet had performed this miracle in Mecca. The king divided his kingdom among his relatives, sailed to Arabia, met the Prophet and became a Muslim.

On his way home he fell ill and died, in most versions on the coast of Arabia. Before dying he gave letters to his companions, led by Malik ibn Dinar, asking the rulers of Kerala to welcome them. They landed, were received with honour, and built mosques along the coast. The first, at Kodungallur, became the Cheraman Juma Masjid.

The oldest full telling is an undated Arabic text, the Qissat Shakarwati Farmad, ‘the tale of the great king Cheraman Perumal’. Its list of the first mosques runs from Kodungallur and Kollam north to Madayi, Barkur, Mangalore, Kasaragod, Kannur, Dharmadam, Panthalayini and Chaliyam. The story also appears in two sixteenth-century works: the Portuguese traveller Duarte Barbosa's account, and the Tuhfat al-Mujahidin, written by the Ponnani scholar Zainuddin Makhdum to rally Malabar's Muslims against the Portuguese.

Malik ibn Dinar: one name, two men

A man named Malik ibn Dinar is well known to Islamic history: a pious scholar and ascetic of Basra in Iraq, who died around 748. There is no early evidence that he ever travelled to India. Malabar tradition gives the name to the leader of the missionary party, and a shrine at Thalangara near Kasaragod is dedicated to him. Historians treat the Kerala Malik ibn Dinar as a figure of tradition whose name may have been borrowed from the famous Basran.

Our assessment: is it really the first mosque in India?

As a claim of history, 629 cannot be proved, and the evidence points to a later date for Islam's organised presence on the coast. But Muslims were almost certainly living in Malabar's ports earlier than anywhere else in India, and the Kodungallur tradition is very old.

‘One of the earliest places of Muslim worship in India, with a tradition going back to the Prophet's lifetime’ is a fair description. ‘Built in 629’ is not.

What the stones and copper say

The documents give a later but firmer picture. In 849, the governor of Venad issued copper plates at Kollam granting rights to a church and to merchant guilds. Among the witnesses who signed are men writing in Arabic script, merchants from West Asia, alongside signatures in Middle Persian and Hebrew. (The Jews of Kerala article touches on the same plates.)

Arab geographers of the ninth to twelfth centuries describe Muslim merchants living in the Malabar ports. The oldest mosque date that can be read with confidence comes from Madayi, near Kannur: a foundation plaque giving the year 518 AH, that is, 1124–25. In Calicut, an inscription at the Muchundi mosque in Kuttichira records a gift from the Zamorin in the thirteenth century.

What is proven, and what is not

The Cheraman Juma Masjid through time

No part of the present building can be shown to be seventh-century. Kerala's timber and laterite buildings are repaired and rebuilt over and over, so no early fabric would be expected to survive. Historians generally date the oldest surviving parts to between the eleventh and fourteenth centuries, and the core, with its prayer hall and sanctuary, has been rebuilt more than once.

In the twentieth century the mosque grew. Concrete halls, corridors, a dome and minarets were added between the 1970s and the 1990s, and they hid the old building almost completely.

A pale blue mosque with a central dome and four slender minarets above a red-tiled roof, framed by palm trees
The Cheraman Juma Masjid in 2007, before restoration, behind its twentieth-century front with a dome and minarets. Photo: Shahin Olakara, via Wikimedia Commons, public domain; resized and enhanced by GK Global.

From 2019, the Muziris Heritage Project, with the conservation architect Benny Kuriakose, removed the later additions and restored the mosque to its Kerala form, at a cost of about Rs 1.14 crore. The old sanctuary was left untouched, and Arabic inscriptions came to light during the work. A small Islamic history museum now stands beside it.

A view through a carved teak doorway into a prayer hall with whitewashed walls, arched windows and a timber roof
Looking through a carved teak doorway into the restored prayer hall: whitewashed walls, arched windows and a timber roof in the Kerala tradition. Photo: Vis M, 2024, via Wikimedia Commons, CC BY-SA 4.0; resized and enhanced by GK Global, and this version is shared under the same licence.

Our assessment: what the legend was for

It is easy to call the Cheraman story a myth and move on. We think, with the historian Sebastian Prange, that it is better to ask what it did. It gave Malabar's Muslims a founding story in which a Kerala king himself invited Islam in, and in which their mosques and qadis went back to the Prophet's companions.

Recorded as the Portuguese were attacking Muslim shipping, it said that Muslims belonged to this coast. Remarkably, Hindu tradition tells a version of the same story, with the king leaving for Mecca.

Mishkal and the mosques of Kuttichira

The finest surviving medieval mosque in Kerala is not in Kodungallur but in Calicut. In the Kuttichira quarter, beside a large tank, stands the Mishkal Palli, built in the early fourteenth century by Nakhuda Mishkal, a shipowner of great wealth. The Moroccan traveller Ibn Battuta, who passed through Calicut in the 1340s, mentions a merchant of this name who owned ships trading to China, Yemen and Persia.

The mosque is a tower of timber on laterite walls, now four storeys and about 18 metres high. A recent architectural study says it once had seven storeys; other accounts say five. In January 1510 the Portuguese under Albuquerque attacked Calicut and set the mosque on fire; the upper floors still show the damage. It was rebuilt with the Zamorin's support.

A tall multi-storey mosque with tiered tiled roofs and wooden upper floors beside a tank
The Mishkal mosque at Kuttichira, Kozhikode, built by the shipowner Nakhuda Mishkal in the fourteenth century and rebuilt after the Portuguese attack of 1510. Photo: Navaneeth T M, via Wikimedia Commons, CC BY-SA 4.0; resized and enhanced by GK Global, and this version is shared under the same licence.

Nearby stand the Muchundi mosque, a century older, and the Jami mosque, both in the same style. Together they show what a Malabar mosque looked like before modern domes arrived.

How a Kerala mosque is built

Kerala's old mosques follow the building traditions of the coast, not those of Arabia or North India. Laterite walls stand on a raised stone plinth. Inside, a grid of teak columns carries the floors and a steep, tiered roof of tiles, with deep eaves against the monsoon rain. Gables are filled with carved wooden screens that let air through. Joints are pegged, not nailed.

There are no domes and no minarets. The coast had no tradition of building domes, and timber cannot carry them; the steep roofs suit a place where it rains for half the year. The call to prayer was given from the building itself. Many mosques have a tank for ablutions beside them, just as temples have a tank for bathing.

Decoration follows Islamic rules: geometric patterns, flowers and lotus motifs, and no human or animal figures. In everything else the craftsmen were the same carpenters who built temples, palaces and nalukettu houses. The result is one of the clearest examples anywhere of a world religion taking the shape of a local landscape.

A richly carved dark wooden ceiling with geometric and floral panels
The carved wooden ceiling of the Thazhathangady Juma Masjid, Kottayam: Kerala carpentry in the service of a mosque. Photo: Vis M, 2023, via Wikimedia Commons, CC BY-SA 4.0; resized and enhanced by GK Global, and this version is shared under the same licence.

Our assessment: restoration, done well

The Cheraman restoration is one of the best heritage projects in Kerala in recent years. Removing a dome and minarets from a working mosque was a sensitive decision, and the result shows the old building as it was meant to be seen.

Many other old mosques on the coast have been rebuilt in concrete with imported domes, and their timber fabric is lost. Mishkal, still in use and still largely timber, deserves the same care.

Visiting

Read also: Muziris · Kozhikode and Kappad · Kerala Architecture · Keezhthali · The Jews of Kerala

See it for yourself, with a local driver who knows these roads.

Book a Munnar Jeep Safari

Sources & further reading

  1. Sebastian R. Prange, Monsoon Islam: Trade and Faith on the Medieval Malabar Coast (Cambridge University Press, 2018), ch. 2, 'The Mosque'
  2. Mehrdad Shokoohy, Muslim Architecture of South India (RoutledgeCurzon, 2003)
  3. Shahim Abdurahiman, 'Forensic architectural analysis of traditional mosque architecture in Kerala: the Miskhal mosque', Built Heritage (2026)
  4. Benny Kuriakose: Cheraman Juma Masjid, restoration of India's first mosque (2021)
  5. Onmanorama: Cheraman Juma Masjid set to reopen after renovation (2021)
  6. From Legend to Landmark: The Story of the Ten Malabar's Earliest Mosques
  7. Sahapedia: The Mahals of Malabar
  8. Wikipedia: Qissat Shakarwati Farmad
  9. Wikipedia: Madayi Mosque
  10. Wikipedia: Mishkal Mosque

Figures are from the sources listed and were checked in November 2026. Park timings and road conditions change, so please confirm before you travel.