Dinar is believed to have built the masjid in 629 AD, five years after the kings death. In the early centuries, Kodungallur was a settlement of traders, …