ranawaka was active in politics while in university in the late 1980s as a member of the pro-jvp student union having spend over eight years as an undergrad in the university engaged in politics. he was arrested as part of the crackdown student activists during the jvp insurrection in 1988 and again in 1991.