Police in Devon and Cornwall are asking for incidents of election-related racism to be reported to them.
Police say they have already had to deal with some incidents
The force said that there had already been a number of complaints in the Plymouth area.
The force said it was determined that everyone should feel safe in the run-up to the election despite any extreme views expressed during campaigning.
Officers said they would follow up all reports and try to calm any community tension which followed.
The force said: "Election campaigning involves the exchange of wide-ranging views including those at the extremes of the political spectrum. This may encourage activity from others who are not politically motivated but criminally motivated.
"Often minority ethnic communities and faith groups suffer an increased fear of racist and religious attacks following the expression of views, which cause alarm and distress and which may break the law.
"We encourage anyone who believes they have been the victim of racism or homophobia or who have encountered offensive material to contact the police."