Illegal means contrary to law; violating the rules or principles on which a system is based. Behavior that is not legal can be considered illegal if it violates society's norms or expectations. For example, speeding on the highway would be considered illegal because it is contrary to traffic laws.