 He was previously elected to Kerala Legislative Assembly in 2006 and in 2011.He lost to M.K Raghavan MP from Kozhikode at the Lokhsabha election 2019.He started his political life as a student activist in Students Federation of India.