Anti-bullying legislation is a legislation that stops bullying. Its purpose is to not let bullying happen in the first place and protect people who were affected by it. Some states and countries have these laws.