 He headed the city council of Sanandaj, too.During this period, he taught law at the school of law at Tehran Azad University and served as head of the school for a short time.Rahimi was elected as member of the Parliament of Iran from his province of birth Kurdistan in Legislative election of 1980 as a member of Islamic Republican Party.