There are many things that a cop can do that are illegal. Violating someone's civil rights can include:
Arresting or detaining someone without just cause
False imprisonment
Threatening or coercing someone into giving false testimony against themselves or others