Legal sanctions are penalties or other forms of enforcement used to provide incentives for obedience with the law or rules and to punish violations. They serve as a deterrent to unlawful behavior and uphold the integrity of legal systems by ensuring compliance with established norms.