From 1792 to 1957 Valenchery was part of Malabar District of the Madras Presidency. From 1961 became part of Malappuram District The history of Morayur has connection with Zamorin Kingdom of Kozhikode. Thinayancherry Elayath was one of the ministers of Zamorin king and he was a native to the place in which he was the family head of mongambulath family of landlords. One Muslim family named 'Kodithodika' was the major family from the earlier history of morayur. At the time of British ruling, it was a common practice to appoint 'Adhikaries' (present day Village Officer) from the major families of the place with inheritance right, so the post was with Kodithodika Family in morayur and it continued after the Independence up to year 1961 when village Reunion ed. The Kodithodika Muhammed Adhikari was the successor of Kodithodika Ahammed Kutty Haji and was the last of his kind, up to year 1970 he was the Adhikari of morayur village. The first Gram panchayat elected President was Kodithodika Ahmed alias Bappu in year 1969 and he continued up-to year 1995. The history of Morayur has connection with The Malabar rebellion(Malabar Kalapam)