At Kodungallur — the ancient Muziris port where so much of Kerala’s history landed by sea — stands the Cheraman Juma Masjid. By long tradition it is the first mosque built in India and the oldest still in use, and unlike almost any mosque you have seen, it was built in the shape of a Kerala temple.

The king who dreamed of the moon

The mosque is woven into one of Kerala’s most famous legends. Cheraman Perumal, the Chera king ruling from Kodungallur, is said to have dreamt of the moon splitting in two. Arab traders passing through explained it as the miracle of the Prophet Muhammad, and the king, moved, divided his kingdom among his chieftains and sailed to Arabia, where he embraced Islam. On his way back he died, but not before writing letters asking the chieftains to receive his companions.

Malik Dinar and the first mosque

Those companions, led by Malik bin Dinar, are said to have reached Kodungallur and, presenting the king’s letters, been given land to build mosques along the coast. The Cheraman mosque, traditionally dated to 629 CE — within the Prophet’s own lifetime — is the most famous of them. Historians debate the dating, with some placing the surviving structure centuries later, and the origin story is best understood as a cherished tradition rather than settled fact; but its antiquity and its meaning for Kerala’s Muslims are not in doubt.

A mosque like a temple

What makes Cheraman unmistakable is its architecture. Rather than domes and minarets, it was built in the local idiom — a lamp burning at the entrance, a tiled sloping roof, woodwork and a form that echoes the temples around it. It is a physical record of how faiths that arrived by sea took root in Kerala soil and grew in a Kerala shape.

Visiting

The mosque is at Kodungallur in Thrissur district, an easy pairing with the town’s other Muziris-era sites. Details are on the Cheraman Juma Masjid place page; explore the district from the Thrissur hub.

Frequently asked questions

Is Cheraman Juma Masjid really India’s first mosque?

By tradition it is the first mosque in India and the oldest still in use, said to date to 629 CE. Some historians place the surviving structure later, so the claim rests on a strong tradition rather than firm documentary proof — but it is undoubtedly among the most ancient and significant mosques in the country.

What is the Cheraman Perumal legend?

It tells of a Chera king of Kodungallur who dreamt of the moon splitting, learned it was the Prophet Muhammad’s miracle, divided his kingdom and sailed to Arabia to embrace Islam — after which his companions, led by Malik bin Dinar, built the first mosques in Kerala.

Why does the mosque look like a temple?

It was built in traditional Kerala style — a lamp, a tiled sloping roof and local woodwork rather than domes and minarets — reflecting how Islam settled into the region’s existing architectural tradition.