What is the difference between a platform's community guidelines and the law?
They are entirely separate systems, and conflating them causes a great deal of confused argument about "free speech" online.
The law sets what is illegal — defined by legislatures, enforced by courts and police, with penalties including prosecution. It varies enormously by country.
Community guidelines are a platform's private rules, set by a company, enforced by that company, with penalties limited to what it controls: removing content, restricting reach, suspending or banning accounts.
The key points:
Guidelines are almost always stricter than the law. A vast amount of lawful speech is prohibited on major platforms — nudity, profanity, graphic content, spam, misinformation, harassment falling short of a criminal threshold. This is not a legal failure; a platform is a private service and sets its own terms.
The law can require removal of content that guidelines might otherwise permit, and platforms must comply with legal orders in jurisdictions where they operate.
Enforcement is geographic for law, global for guidelines. Content illegal in one country may be geoblocked there while remaining available elsewhere. Guideline violations are typically removed everywhere.
On "free speech" and censorship. In the US, the First Amendment restricts government action, not private companies, so a platform removing content is not a constitutional violation — this is the single most common misunderstanding in these arguments. Other countries have different constitutional frameworks, and some — notably Germany's NetzDG and the EU's Digital Services Act — impose legal duties on platforms regarding illegal content, with the DSA also requiring transparency, appeals mechanisms and reasons for removals.
The UK's Online Safety Act imposes duties regarding illegal content and children's safety.
Practically: "it's not illegal" is not a defence against guideline enforcement, and "the platform allowed it" is not a defence against legal liability. You can be sued or prosecuted for a post that never violated any guideline.