Here are a few possibilities:
* Unlawful: This is the most direct opposite, simply meaning "not lawful".
* Illicit: This implies something illegal or forbidden.
* Illegal: This specifically means against the law.
* Outlawed: This means something that was previously legal but has been made illegal.
The best prefix to use will depend on the specific context.