madayi mosque (malayalam: മാടായി പള്ളി, matayi palli; pazhayangadi mosque) is mosque at pazhayangadi in kannur district, northern kerala. it is one of the oldest mosques in kerala, with local legends dating back to 7th century ad. it is believed to have been established by malik ibn dinar and contains a block of white marble said to have been brought from mecca by ibn dinar. it is one of the several mosques around pazhayangadi/payangadi. it is situated on the banks of kuppam river, which joins valapattanam river at its estuary.