Wikipedia
Madayi (aka Madai, Malayalam: മാടായി ) is a village near Pazhayangadi in Kannur district, Kerala. The famous Bhagavathy shrine, Madayi Kavu (Thiruvar Kadu Bhagavathi Temple) where devotees worship Bhadrakali is located here. The Goddess is one of the family deity of the Chirakkal Royal family, and the temple is known for the Koyikalasham (Offering of chicken). The temple was one of the few to survive desecration by the armies of Tippu Sultan, which devotees attribute to the grace of the Goddess. The Kolathiri Rajahs were the administrators of the temple, however recently the administration was transferred to the Malabar Devaswom Board. Nearby is the Vadukunnu Temple dedicated to Shiva. The temple was razed by followers of Tippu Sultan in the 18th century, but fortunately the temple has been rebuilt and is a vibrant centre of religion in the region.
Madayi is also well known for the Malik Ibn Dinar mosque(aka Madayi Palli). This beautiful ancient mosque is believed to have been originally built by Malik Ibn Dinar, a Muslim preacher. A block of white marble in the mosque is believed to have been brought from Mecca by its founder, who came to India to spread the word of the Prophet. Nearby lies a dilapidated fort believed to have been built by Tipu Sultan, the ruler of Mysore.