Usage note
违法意思是做了法律不允许的事情。
Wéifǎ yìsi shì zuò le fǎlǜ bù yǔnxǔ de shìqíng.
Illegal means doing something that the law does not allow.
违法意思是做了法律不允许的事情。
Wéifǎ yìsi shì zuò le fǎlǜ bù yǔnxǔ de shìqíng.
Illegal means doing something that the law does not allow.
偷东西是违法的行为。
Tōu dōngxi shì wéifǎ de xíngwéi.
Stealing is an illegal act.
非法 is a direct synonym, often used in legal contexts.
合法 means legal, the direct opposite of 违法.
犯罪 refers to committing a crime, which is a type of illegal act.
遵守 means to obey rules or laws, contrasting with 违法.